Skip to content

Commit 3ab1e15

Browse files
committed
[#705] Change git diff options to allow detection of space changes
1 parent 95fcad6 commit 3ab1e15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vcs/git/git_impl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (g *gitImpl) UnStash(keep bool) error {
316316
func (g *gitImpl) Diff() (diffs vcs.FileDiffs, err error) {
317317
var gitOutput []byte
318318
gitOutput, err = g.runGit("diff", "--numstat", "--ignore-cr-at-eol",
319-
"--ignore-all-space", "--ignore-blank-lines", "HEAD")
319+
"--ignore-blank-lines", "HEAD")
320320
if err != nil {
321321
return nil, err
322322
}

src/vcs/git/git_impl_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func Test_git_diff(t *testing.T) {
109109
nil,
110110
false,
111111
[]string{
112-
"diff", "--numstat", "--ignore-cr-at-eol", "--ignore-all-space", "--ignore-blank-lines", "HEAD"},
112+
"diff", "--numstat", "--ignore-cr-at-eol", "--ignore-blank-lines", "HEAD"},
113113
nil,
114114
},
115115
{"git diff command call fails",

0 commit comments

Comments
 (0)