mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-02 09:21:40 +02:00
show whitespace in diffs again
This commit is contained in:
parent
d6dbd46793
commit
2dfef09e55
@ -386,7 +386,7 @@ func getDiff(file GitFile) string {
|
|||||||
if !file.Tracked && !file.HasStagedChanges {
|
if !file.Tracked && !file.HasStagedChanges {
|
||||||
trackedArg = "--no-index /dev/null "
|
trackedArg = "--no-index /dev/null "
|
||||||
}
|
}
|
||||||
command := "git diff -b --color " + cachedArg + deletedArg + trackedArg + file.Name
|
command := "git diff --color " + cachedArg + deletedArg + trackedArg + file.Name
|
||||||
// for now we assume an error means the file was deleted
|
// for now we assume an error means the file was deleted
|
||||||
s, _ := runCommand(command)
|
s, _ := runCommand(command)
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user