From: Martin Waitz Date: Tue, 3 Oct 2006 16:38:25 +0000 (+0200) Subject: git-commit: cleanup unused function. X-Git-Tag: v1.4.3-rc2~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c065b6e4293f856012ec53fcff7bf4d47ac50927;p=git.git git-commit: cleanup unused function. The report() function is not used anymore. Kill it. Signed-off-by: Martin Waitz Signed-off-by: Junio C Hamano --- diff --git a/git-commit.sh b/git-commit.sh index 5a4c659b6..6f6cbda89 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -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