mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
show whitespace in diffs again
This commit is contained in:
parent
d6dbd46793
commit
2dfef09e55
1 changed files with 3 additions and 3 deletions
|
@ -317,8 +317,8 @@ func sublimeOpenFile(filename string) (string, error) {
|
||||||
|
|
||||||
func getBranchDiff(branch string, baseBranch string) (string, error) {
|
func getBranchDiff(branch string, baseBranch string) (string, error) {
|
||||||
|
|
||||||
return runCommand("git log -p -30 --color --no-merges " + branch)
|
return runCommand("git log -p -30 --color --no-merges " + branch)
|
||||||
// return runCommand("git diff --color " + baseBranch + "..." + branch)
|
// return runCommand("git diff --color " + baseBranch + "..." + branch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func verifyInGitRepo() {
|
func verifyInGitRepo() {
|
||||||
|
@ -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…
Add table
Add a link
Reference in a new issue