aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-30 09:31:12 -0300
committerEuAndreh <eu@euandre.org>2023-03-30 09:31:12 -0300
commite721a8b1f2def5be7cd66858d736540ab22a9a1e (patch)
tree3d835e1d7a05d4c2d7f1d19af723b28523012e2d /bin
parentbin/backup: Fix early termination desired behaviour (diff)
downloaddotfiles-e721a8b1f2def5be7cd66858d736540ab22a9a1e.tar.gz
dotfiles-e721a8b1f2def5be7cd66858d736540ab22a9a1e.tar.xz
bin/vcs: Handle new files added via "git add -N FILE"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vcs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/vcs b/bin/vcs
index 4140ffd..ed50b68 100755
--- a/bin/vcs
+++ b/bin/vcs
@@ -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