Clean up StatusList flags
Anirudh Oppiliappan x@icyphox.sh
Wed, 11 Aug 2021 17:13:13 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
prompt/git.go
→
prompt/git.go
@@ -39,7 +39,7 @@ // Returns • if clean, else ×.
func gitStatus(repo *git.Repository) string { sl, _ := repo.StatusList(&git.StatusOptions{ Show: git.StatusShowIndexAndWorkdir, - Flags: git.StatusOptIncludeUntracked | git.StatusOptRenamesHeadToIndex | git.StatusOptSortCaseSensitively, + Flags: git.StatusOptIncludeUntracked, }) n, _ := sl.EntryCount() if n != 0 {