@matheusbsbs / matheus-bagliano / commits / c065b6e429
Fork 0

git-commit: cleanup unused function.

The report() function is not used anymore. Kill it. Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Martin Waitz committed Oct 3, 2006 at 18:38 UTC c065b6e4293f856012ec53fcff7bf4d47ac50927
1 file changed -27
git-commit.sh
-27
@@ -32,33 +32,6 @@ save_index () {
32 cp -p "$THIS_INDEX" "$NEXT_INDEX"
33 }
34
35 -report () {
36 - header="#
37 -# $1:
38 -# ($2)
39 -#
40 -"
41 - trailer=""
42 - while read status name newname
43 - do
44 - printf '%s' "$header"
45 - header=""
46 - trailer="#
47 -"
48 - case "$status" in
49 - M ) echo "# modified: $name";;
50 - D*) echo "# deleted: $name";;
51 - T ) echo "# typechange: $name";;
52 - C*) echo "# copied: $name -> $newname";;
53 - R*) echo "# renamed: $name -> $newname";;
54 - A*) echo "# new file: $name";;
55 - U ) echo "# unmerged: $name";;
56 - esac
57 - done
58 - printf '%s' "$trailer"
59 - [ "$header" ]
60 -}
61 -
35 run_status () {
36 # If TMP_INDEX is defined, that means we are doing
37 # "--only" partial commit, and that index file is used