3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 source "`dirname $0`/guilt"
13 git-rev-parse
--verify HEAD
>/dev
/null
2>&1 || IS_INITIAL
=t
17 while read status name newname
23 C
*) echo "C $name -> $newname";;
24 R
*) echo "R $name -> $newname";;
32 if [ -z "$IS_INITIAL" ]; then
34 git-diff-index
-M --cached --name-status --diff-filter=MDTCRA HEAD |
50 if [ -f "$GIT_DIR/info/exclude" ]; then
51 git-ls-files
-z --others \
52 --exclude-from="$GIT_DIR/info/exclude" \
53 --exclude-per-directory=.gitignore
55 git-ls-files
-z --others --exclude-per-directory=.gitignore
56 fi |
xargs -0 -L 1 echo |
while read n
; do
57 [ -z "$n" ] && continue
58 echo "$n" |
sed -e 's/^/? /'