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