Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git-re-edit: do not edit unknown files

  • Loading branch information...
commit 058cf9216855e3ba5378afc226564bdfd994136b 1 parent 8d02014
@mjdominus authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  git-re-edit
View
2  git-re-edit
@@ -8,7 +8,7 @@
# stuff you were working on before. Useful following a failed merge.
#
-chomp(my @changed = qx{git status --porcelain});
+chomp(my @changed = grep !/^\?\? /, qx{git status --porcelain});
exit 1 unless $? == 0;
s/^.. // or die "<$_>???\n" for @changed;
die "Fucking shell, how does it work?\n"
Please sign in to comment.
Something went wrong with that request. Please try again.