"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file ".git/hooks/prepare-commit-msg.sample" between
pacpl-6.1.0.tar.bz2 and pacpl-6.1.2.tar.bz2

About: Perl Audio Converter is a tool for converting multiple audio types from one format to another.

prepare-commit-msg.sample  (pacpl-6.1.0.tar.bz2):prepare-commit-msg.sample  (pacpl-6.1.2.tar.bz2)
skipping to change at line 12 skipping to change at line 12
# #
# An example hook script to prepare the commit log message. # An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the # Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit # commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit # message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status, # message file. If the hook fails with a non-zero status,
# the commit is aborted. # the commit is aborted.
# #
# To enable this hook, rename this file to "prepare-commit-msg". # To enable this hook, rename this file to "prepare-commit-msg".
# This hook includes three examples. The first one removes the # This hook includes three examples. The first comments out the
# "# Please enter the commit message..." help message. # "Conflicts:" part of a merge commit.
# #
# The second includes the output of "git diff --name-status -r" # The second includes the output of "git diff --name-status -r"
# into the message, just before the "git status" output. It is # into the message, just before the "git status" output. It is
# commented because it doesn't cope with --amend or with squashed # commented because it doesn't cope with --amend or with squashed
# commits. # commits.
# #
# The third example adds a Signed-off-by line to the message, that can # The third example adds a Signed-off-by line to the message, that can
# still be edited. This is rarely a good idea. # still be edited. This is rarely a good idea.
COMMIT_MSG_FILE=$1 case "$2,$3" in
COMMIT_SOURCE=$2 merge,)
SHA1=$3 /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print'
"$1" ;;
/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/ # ,|template,)
^#$/)' "$COMMIT_MSG_FILE" # /usr/bin/perl -i.bak -pe '
# print "\n" . `git diff --cached --name-status -r`
# if /^#/ && $first++ == 0' "$1" ;;
# case "$COMMIT_SOURCE,$SHA1" in *) ;;
# ,|template,) esac
# /usr/bin/perl -i.bak -pe '
# print "\n" . `git diff --cached --name-status -r`
# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;;
# *) ;;
# esac
# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p' # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
) # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
# if test -z "$COMMIT_SOURCE"
# then
# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
# fi
 End of changes. 5 change blocks. 
14 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)