We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7579925 commit d629c48Copy full SHA for d629c48
src/git_utils.c
@@ -49,8 +49,7 @@ bool is_git_repository() {
49
* @return Single character representing the file's Git status.
50
*/
51
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
+ if (status_str[0] == '?' && status_str[1] == '?') return '?'; // Untracked
54
return status_str[0] != ' ' ? status_str[0] : status_str[1]; // Modified, Staged, etc.
55
}
56
0 commit comments