@@ -113,31 +113,31 @@ func TestStashStashEntryCmdObj(t *testing.T) {
113
113
contextSize : 3 ,
114
114
similarityThreshold : 50 ,
115
115
ignoreWhitespace : false ,
116
- expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "--color=always" , "--unified=3" , "--find-renames=50%" , "stash@{5}" },
116
+ expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "-u" , "- -color=always" , "--unified=3" , "--find-renames=50%" , "stash@{5}" },
117
117
},
118
118
{
119
119
testName : "Show diff with custom context size" ,
120
120
index : 5 ,
121
121
contextSize : 77 ,
122
122
similarityThreshold : 50 ,
123
123
ignoreWhitespace : false ,
124
- expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "--color=always" , "--unified=77" , "--find-renames=50%" , "stash@{5}" },
124
+ expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "-u" , "- -color=always" , "--unified=77" , "--find-renames=50%" , "stash@{5}" },
125
125
},
126
126
{
127
127
testName : "Show diff with custom similarity threshold" ,
128
128
index : 5 ,
129
129
contextSize : 3 ,
130
130
similarityThreshold : 33 ,
131
131
ignoreWhitespace : false ,
132
- expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "--color=always" , "--unified=3" , "--find-renames=33%" , "stash@{5}" },
132
+ expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "-u" , "- -color=always" , "--unified=3" , "--find-renames=33%" , "stash@{5}" },
133
133
},
134
134
{
135
135
testName : "Default case" ,
136
136
index : 5 ,
137
137
contextSize : 3 ,
138
138
similarityThreshold : 50 ,
139
139
ignoreWhitespace : true ,
140
- expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "--color=always" , "--unified=3" , "--ignore-all-space" , "--find-renames=50%" , "stash@{5}" },
140
+ expected : []string {"git" , "-C" , "/path/to/worktree" , "stash" , "show" , "-p" , "--stat" , "-u" , "- -color=always" , "--unified=3" , "--ignore-all-space" , "--find-renames=50%" , "stash@{5}" },
141
141
},
142
142
}
143
143
0 commit comments