git diff
shows the correct indentation, but git add -p
does not. Here's are how the same changes are represented.
$ git diff
diff --git a/utils/utils.go b/utils/utils.go
index 3796954..b755bd5 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -11,7 +11,7 @@ import (
)
func LogsDir(homeDir string) string {
- return filepath.Join(homeDir, "logs")
+ return filepath.Join(homeDirs, "logs")
}
$ git add -p
diff --git a/utils/utils.go b/utils/utils.go
index 3796954..b755bd5 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -11,7 +11,7 @@ import (
)
func LogsDir(homeDir string) string {
- return filepath.Join(homeDir, "logs")
+ return filepath.Join(homeDirs, "logs")
}
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
What's wrong with my configuration?