9 while read oldmode mode oldsha sha status name newname
16 M
) echo "# modified: $name";;
17 D
*) echo "# deleted: $name";;
18 T
) echo "# typechange: $name";;
19 C
*) echo "# copied: $name -> $newname";;
20 R
*) echo "# renamed: $name -> $newname";;
21 N
*) echo "# new file: $name";;
22 U
) echo "# unmerged: $name";;
29 git-update-cache
--refresh >& /dev
/null
30 git-diff-cache
-B -C --cached HEAD |
sed 's/^://' | report
"Updated but not checked in" "will commit"
32 git-diff-files |
sed 's/^://' | report
"Changed but not updated" "use git-update-cache to mark for commit"
33 if [ "$committable" == "0" ]
35 echo "nothing to commit"