diff options
author | EuAndreh <eu@euandre.org> | 2023-03-30 09:31:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-30 09:31:12 -0300 |
commit | e721a8b1f2def5be7cd66858d736540ab22a9a1e (patch) | |
tree | 3d835e1d7a05d4c2d7f1d19af723b28523012e2d | |
parent | bin/backup: Fix early termination desired behaviour (diff) | |
download | dotfiles-e721a8b1f2def5be7cd66858d736540ab22a9a1e.tar.gz dotfiles-e721a8b1f2def5be7cd66858d736540ab22a9a1e.tar.xz |
bin/vcs: Handle new files added via "git add -N FILE"
-rwxr-xr-x | bin/vcs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ git_ps1() { if echo "$DIFF_LINES" | grep -q '^[A|D|M| ][M|D| ]'; then HAS_DIFF=true fi - if echo "$DIFF_LINES" | grep -q '^[?][?]'; then + if echo "$DIFF_LINES" | grep -Eq '^([?][?]| A)'; then HAS_UNTRACKED=true fi |