Skip to content

Commit d629c48

Browse files
feat: Change untracked file git status indicator from [U] to [?] in file listing
1 parent 7579925 commit d629c48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/git_utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ bool is_git_repository() {
4949
* @return Single character representing the file's Git status.
5050
*/
5151
static char parse_status(const char* status_str) {
52-
if (status_str[0] == '?' && status_str[1] == '?') return 'U'; // Untracked
53-
if (status_str[0] == '!' && status_str[1] == '!') return 'I'; // Ignored
52+
if (status_str[0] == '?' && status_str[1] == '?') return '?'; // Untracked
5453
return status_str[0] != ' ' ? status_str[0] : status_str[1]; // Modified, Staged, etc.
5554
}
5655

0 commit comments

Comments
 (0)