Skip to content

Commit

Permalink
git-commit: cleanup unused function.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Waitz authored and Junio C Hamano committed Oct 4, 2006
1 parent 281e67d commit c065b6e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions git-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,6 @@ save_index () {
cp -p "$THIS_INDEX" "$NEXT_INDEX"
}

report () {
header="#
# $1:
# ($2)
#
"
trailer=""
while read status name newname
do
printf '%s' "$header"
header=""
trailer="#
"
case "$status" in
M ) echo "# modified: $name";;
D*) echo "# deleted: $name";;
T ) echo "# typechange: $name";;
C*) echo "# copied: $name -> $newname";;
R*) echo "# renamed: $name -> $newname";;
A*) echo "# new file: $name";;
U ) echo "# unmerged: $name";;
esac
done
printf '%s' "$trailer"
[ "$header" ]
}

run_status () {
# If TMP_INDEX is defined, that means we are doing
# "--only" partial commit, and that index file is used
Expand Down

0 comments on commit c065b6e

Please sign in to comment.