Skip to content

Commit 67695ba

Browse files
committed
mhutchie#414 Export & Import Git Graph Repository Configuration (for sharing within teams).
1 parent 6f38c67 commit 67695ba

File tree

12 files changed

+1134
-100
lines changed

12 files changed

+1134
-100
lines changed

src/extensionState.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const DEFAULT_REPO_STATE: GitRepoState = {
2525
hideRemotes: [],
2626
includeCommitsMentionedByReflogs: BooleanOverride.Default,
2727
issueLinkingConfig: null,
28+
lastImportAt: 0,
2829
name: null,
2930
onlyFollowFirstParent: BooleanOverride.Default,
3031
onRepoLoadShowCheckedOutBranch: BooleanOverride.Default,

src/gitGraphView.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@ export class GitGraphView extends Disposable {
384384
case 'endCodeReview':
385385
this.extensionState.endCodeReview(msg.repo, msg.id);
386386
break;
387+
case 'exportRepoConfig':
388+
this.sendMessage({
389+
command: 'exportRepoConfig',
390+
error: await this.repoManager.exportRepoConfig(msg.repo)
391+
});
392+
break;
387393
case 'getSettings':
388394
this.sendMessage({
389395
command: 'getSettings',

0 commit comments

Comments
 (0)