@@ -267,7 +267,7 @@ func TestCommitShowCmdObj(t *testing.T) {
267
267
similarityThreshold : 50 ,
268
268
ignoreWhitespace : false ,
269
269
extDiffCmd : "" ,
270
- expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" },
270
+ expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" , "--" },
271
271
},
272
272
{
273
273
testName : "Default case with filter path" ,
@@ -285,7 +285,7 @@ func TestCommitShowCmdObj(t *testing.T) {
285
285
similarityThreshold : 50 ,
286
286
ignoreWhitespace : false ,
287
287
extDiffCmd : "" ,
288
- expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=77" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" },
288
+ expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=77" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" , "--" },
289
289
},
290
290
{
291
291
testName : "Show diff with custom similarity threshold" ,
@@ -294,7 +294,7 @@ func TestCommitShowCmdObj(t *testing.T) {
294
294
similarityThreshold : 33 ,
295
295
ignoreWhitespace : false ,
296
296
extDiffCmd : "" ,
297
- expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=33%" },
297
+ expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=33%" , "--" },
298
298
},
299
299
{
300
300
testName : "Show diff, ignoring whitespace" ,
@@ -303,7 +303,7 @@ func TestCommitShowCmdObj(t *testing.T) {
303
303
similarityThreshold : 50 ,
304
304
ignoreWhitespace : true ,
305
305
extDiffCmd : "" ,
306
- expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=77" , "--stat" , "--decorate" , "-p" , "1234567890" , "--ignore-all-space" , "--find-renames=50%" },
306
+ expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.noprefix=false" , "show" , "--no-ext-diff" , "--submodule" , "--color=always" , "--unified=77" , "--stat" , "--decorate" , "-p" , "1234567890" , "--ignore-all-space" , "--find-renames=50%" , "--" },
307
307
},
308
308
{
309
309
testName : "Show diff with external diff command" ,
@@ -312,7 +312,7 @@ func TestCommitShowCmdObj(t *testing.T) {
312
312
similarityThreshold : 50 ,
313
313
ignoreWhitespace : false ,
314
314
extDiffCmd : "difft --color=always" ,
315
- expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.external=difft --color=always" , "-c" , "diff.noprefix=false" , "show" , "--ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" },
315
+ expected : []string {"-C" , "/path/to/worktree" , "-c" , "diff.external=difft --color=always" , "-c" , "diff.noprefix=false" , "show" , "--ext-diff" , "--submodule" , "--color=always" , "--unified=3" , "--stat" , "--decorate" , "-p" , "1234567890" , "--find-renames=50%" , "--" },
316
316
},
317
317
}
318
318
0 commit comments