2 . git-sh-setup-script || die
"Not a git archive"
11 while read oldmode mode oldsha sha status name newname
18 M
) echo "# modified: $name";;
19 D
*) echo "# deleted: $name";;
20 T
) echo "# typechange: $name";;
21 C
*) echo "# copied: $name -> $newname";;
22 R
*) echo "# renamed: $name -> $newname";;
23 A
*) echo "# new file: $name";;
24 U
) echo "# unmerged: $name";;
31 git-update-cache
--refresh >/dev
/null
2>&1
32 git-diff-cache
-M --cached HEAD |
sed 's/^://' | report
"Updated but not checked in" "will commit"
34 git-diff-files |
sed 's/^://' | report
"Changed but not updated" "use git-update-cache to mark for commit"
35 if [ "$committable" == "0" ]
37 echo "nothing to commit"
40 branch
=`readlink "$GIT_DIR/HEAD"`
44 # On branch $branch" ;;