aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-12 13:48:48 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-12 13:53:27 +0200
commit8fb5834ce91d51cf63907f7482624ca6ad09d1b2 (patch)
tree80ba7a46448c2bf663d0b96f7ee75c52ad290825
parentd49a97855859765321e50b51801e3d4de20942d7 (diff)
downloadxutil-8fb5834ce91d51cf63907f7482624ca6ad09d1b2.tar.gz
git-orig: Reset checked-out file
-rwxr-xr-xgit/git-orig1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/git-orig b/git/git-orig
index a792390..c7be71b 100755
--- a/git/git-orig
+++ b/git/git-orig
@@ -13,6 +13,7 @@ for f in "$@"; do
done
git checkout "$h" -- "$@"
+git reset "$@" >/dev/null
for f in "$@"; do
mv -i "$f" "$f".orig