Skip to content

Commit

Permalink
fix: add --porcelain to git status --short (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
110y committed May 7, 2024
1 parent 1d100c6 commit 5c6d8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
cmdPushFilesBase = []string{"git", "diff", "--name-only", "HEAD", "@{push}"}
cmdPushFilesHead = []string{"git", "diff", "--name-only", "HEAD"}
cmdStagedFiles = []string{"git", "diff", "--name-only", "--cached", "--diff-filter=ACMR"}
cmdStatusShort = []string{"git", "status", "--short"}
cmdStatusShort = []string{"git", "status", "--short", "--porcelain"}
cmdListStash = []string{"git", "stash", "list"}
cmdRootPath = []string{"git", "rev-parse", "--show-toplevel"}
cmdHooksPath = []string{"git", "rev-parse", "--git-path", "hooks"}
Expand Down
2 changes: 1 addition & 1 deletion internal/git/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ MM staged but changed
Git: &CommandExecutor{
exec: GitMock{
cases: map[string]string{
"git status --short": tt.gitOut,
"git status --short --porcelain": tt.gitOut,
},
},
},
Expand Down

0 comments on commit 5c6d8ae

Please sign in to comment.