File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -771,7 +771,7 @@ export namespace Git {
771771 if ( limit && ! reverse ) {
772772 params . push ( `-n${ limit } ` ) ;
773773 }
774- params . push ( renames ? '--follow' : '-m' ) ;
774+ params . push ( startLine == null && renames ? '--follow' : '-m' ) ;
775775
776776 if ( filters != null && filters . length !== 0 ) {
777777 params . push ( `--diff-filter=${ filters . join ( emptyStr ) } ` ) ;
@@ -801,8 +801,8 @@ export namespace Git {
801801 }
802802 }
803803
804- if ( startLine == null || renames ) {
805- // Don't specify a file spec when using a line number (so say the git docs), unless it is a follow
804+ if ( startLine == null ) {
805+ // Don't specify a file spec when using a line number (so say the git docs)
806806 params . push ( '--' , file ) ;
807807 }
808808
You can’t perform that action at this time.
0 commit comments