summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-14 09:01:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-14 09:01:43 +0200
commit5d61f2751b718658ad5b88faca114b39115d248e (patch)
tree20b30f2c124660cebf4be742c56c1d46aa7b4e66
parent62579b8f93b43876b96ccb83ddb11fe6886190b7 (diff)
downloadbin-5d61f2751b718658ad5b88faca114b39115d248e.zip
bin-5d61f2751b718658ad5b88faca114b39115d248e.tar.gz
add git-rm git-urm
-rwxr-xr-xgit-rm2
-rwxr-xr-xgit-urm2
2 files changed, 4 insertions, 0 deletions
diff --git a/git-rm b/git-rm
new file mode 100755
index 0000000..d7dd4c9
--- /dev/null
+++ b/git-rm
@@ -0,0 +1,2 @@
+#! /bin/sh
+git status -s | grep -e '^ D' | gawk '{print $2 }' | xargs -r git rm
diff --git a/git-urm b/git-urm
new file mode 100755
index 0000000..ad74dcc
--- /dev/null
+++ b/git-urm
@@ -0,0 +1,2 @@
+#! /bin/sh
+git status -s | grep -e '^ D' | gawk '{print $2 }' | xargs -r git checkout