File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 10011001 "scope" : " resource" ,
10021002 "default" : false ,
10031003 "description" : " %config.alwaysSignOff%"
1004+ },
1005+ "git.ignoreRepositories" : {
1006+ "type" : " array" ,
1007+ "default" : [],
1008+ "scope" : " window" ,
1009+ "description" : " %config.ignoredRepositories%"
10041010 }
10051011 }
10061012 },
Original file line number Diff line number Diff line change 7474 "colors.added" : " Color for added resources." ,
7575 "config.detectSubmodulesLimit" : " Controls the limit of git submodules detected." ,
7676 "config.alwaysSignOff" : " Controls the signoff flag for all commits" ,
77+ "config.ignoredRepositories" : " List of git repositories to ignore" ,
7778 "colors.modified" : " Color for modified resources." ,
7879 "colors.deleted" : " Color for deleted resources." ,
7980 "colors.untracked" : " Color for untracked resources." ,
8081 "colors.ignored" : " Color for ignored resources." ,
8182 "colors.conflict" : " Color for resources with conflicts." ,
8283 "colors.submodule" : " Color for submodule resources."
83- }
84+ }
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ export class Model {
190190
191191 const config = workspace . getConfiguration ( 'git' , Uri . file ( path ) ) ;
192192 const enabled = config . get < boolean > ( 'enabled' ) === true ;
193+ const ignoredRepos = new Set ( config . get < Array < string > > ( 'ignoreRepositories' ) ) ;
193194
194195 if ( ! enabled ) {
195196 return ;
@@ -207,6 +208,10 @@ export class Model {
207208 return ;
208209 }
209210
211+ if ( ignoredRepos . has ( rawRoot ) ) {
212+ return ;
213+ }
214+
210215 const repository = new Repository ( this . git . open ( repositoryRoot ) , this . globalState ) ;
211216
212217 this . open ( repository ) ;
You can’t perform that action at this time.
0 commit comments