X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=templates%2Fhooks--prepare-commit-msg.sample;h=365242499dcf0ee35c26ccb2917724d6e559be69;hb=fa6200fc02ad79124322b97fc26f79467789838f;hp=aa42acfd68dcb04634d1e7309b00b6e85d9933e2;hpb=e4403d8bd3ccb6bcc3b6569012944d932334f5c4;p=git.git diff --git a/templates/hooks--prepare-commit-msg.sample b/templates/hooks--prepare-commit-msg.sample index aa42acfd6..365242499 100755 --- a/templates/hooks--prepare-commit-msg.sample +++ b/templates/hooks--prepare-commit-msg.sample @@ -22,10 +22,10 @@ case "$2,$3" in merge,) - perl -i -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; + perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; # ,|template,) -# perl -i -pe ' +# perl -i.bak -pe ' # print "\n" . `git diff --cached --name-status -r` # if /^#/ && $first++ == 0' "$1" ;;