diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 19:00:58 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 19:00:58 -0500 |
commit | 0e5e742b5072eb86c8e722c29dd75ccbb976daa7 (patch) | |
tree | 522a8773963fc5b38fa2806efc23334ada10fdd4 | |
parent | 5c2fee1ae50780b7aaa8bb79f4c9b885ecc72ccc (diff) |
add script to handle git-rm of files
-rwxr-xr-x | post-apt.d/60git-rm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/post-apt.d/60git-rm b/post-apt.d/60git-rm new file mode 100755 index 0000000..73dc4d8 --- /dev/null +++ b/post-apt.d/60git-rm @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +TAB=" " + +for file in $(git status | egrep "^#${TAB}*deleted: *" | sed 's/.*deleted: *//'); do + if [ ! -d "$file" ]; then + git rm "$file" + fi +done |