Skip to content

Commit 16342ef

Browse files
authored
Add type change status
1 parent 41c2225 commit 16342ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

status.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ type StatusRecord struct {
1818

1919
// StatusMap maps status codes from "git status --porcelain" to human-readable, imperative
2020
// verbs.
21+
//
22+
// NOTE: See https://git-scm.com/docs/git-status#_short_format
2123
var statusMap = map[rune]string{
2224
'M': "Update",
2325
'A': "Create",
2426
'D': "Delete",
2527
// NOTE: With -z, the *new* filename is followed by the old filename, separated by a NUL.
2628
'R': "Rename",
2729
'C': "Copy",
30+
'T': "Change type of",
2831
// NOTE: '?' is untracked, ' ' is unmodified
32+
// NOTE: '!' is ignored, 'U' is unmerged
2933
}
3034

3135
// NoStaged checks if there are no staged changes (added files, changed files, removed files)

0 commit comments

Comments
 (0)