File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 613613 "description" : " Allow to count unversioned files in status count" ,
614614 "default" : true
615615 },
616+ "svn.sourceControl.countIgnoreOnCommit" : {
617+ "type" : " boolean" ,
618+ "description" :
619+ " Allow to count ignored files to commit in status count" ,
620+ "default" : false
621+ },
616622 "svn.log.length" : {
617623 "type" : " number" ,
618624 "minimum" : 1 ,
Original file line number Diff line number Diff line change @@ -508,6 +508,16 @@ export class Repository {
508508 group . resourceStates = [ ] ;
509509 } ) ;
510510
511+ const counts = [ this . changes , this . conflicts ] ;
512+
513+ const countIgnoreOnCommit = configuration . get < boolean > (
514+ "sourceControl.countIgnoreOnCommit" ,
515+ false
516+ ) ;
517+ const ignoreOnCommitList = configuration . get < string [ ] > (
518+ "sourceControl.ignoreOnCommit"
519+ ) ;
520+
511521 changelists . forEach ( ( resources , changelist ) => {
512522 let group = this . changelists . get ( changelist ) ;
513523 if ( ! group ) {
@@ -523,10 +533,11 @@ export class Repository {
523533 }
524534
525535 group . resourceStates = resources ;
526- } ) ;
527536
528- // svnConfig.
529- const counts = [ this . changes , this . conflicts , ...this . changelists . values ( ) ] ;
537+ if ( countIgnoreOnCommit && ignoreOnCommitList . includes ( changelist ) ) {
538+ counts . push ( group ) ;
539+ }
540+ } ) ;
530541
531542 if ( configuration . get < boolean > ( "sourceControl.countUnversioned" , false ) ) {
532543 counts . push ( this . unversioned ) ;
You can’t perform that action at this time.
0 commit comments