3 # Copyright (c) 2005 Linus Torvalds
5 . git-sh-setup || die "Not a git archive"
14 while read oldmode mode oldsha sha status name newname
21 M ) echo "# modified: $name";;
22 D*) echo "# deleted: $name";;
23 T ) echo "# typechange: $name";;
24 C*) echo "# copied: $name -> $newname";;
25 R*) echo "# renamed: $name -> $newname";;
26 A*) echo "# new file: $name";;
27 U ) echo "# unmerged: $name";;
34 branch=$(GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD)
37 *) echo "# On branch $branch" ;;
40 git-update-index -q --unmerged --refresh || exit
42 if GIT_DIR="$GIT_DIR" git-rev-parse --verify HEAD >/dev/null 2>&1
44 git-diff-index -M --cached HEAD |
54 report "Updated but not checked in" "will commit"
65 report "Updated but not checked in" "will commit"
80 report "Changed but not updated" "use git-update-index to mark for commit"
82 if grep -v '^#' "$GIT_DIR/info/exclude" >/dev/null 2>&1
84 git-ls-files --others \
85 --exclude-from="$GIT_DIR/info/exclude" \
86 --exclude-per-directory=.gitignore |
91 # (use "git add" to add to commit)\
98 case "$committable" in
100 echo "nothing to commit"