|
|
|||
File indexing completed on 2026-04-09 07:58:23
0001 #!/bin/sh 0002 # 0003 # An example hook script to prepare the commit log message. 0004 # Called by "git commit" with the name of the file that has the 0005 # commit message, followed by the description of the commit 0006 # message's source. The hook's purpose is to edit the commit 0007 # message file. If the hook fails with a non-zero status, 0008 # the commit is aborted. 0009 # 0010 # To enable this hook, rename this file to "prepare-commit-msg". 0011 0012 # This hook includes three examples. The first comments out the 0013 # "Conflicts:" part of a merge commit. 0014 # 0015 # The second includes the output of "git diff --name-status -r" 0016 # into the message, just before the "git status" output. It is 0017 # commented because it doesn't cope with --amend or with squashed 0018 # commits. 0019 # 0020 # The third example adds a Signed-off-by line to the message, that can 0021 # still be edited. This is rarely a good idea. 0022 0023 0024 #NUMBER=$(git branch | grep '*'|grep 'patch\|feature'|cut -d- -f2) 0025 #if [ -z $NUMBER ] 0026 #then 0027 # echo "Not a patch or feature branch" 0028 #else 0029 # sed -i "1s/^/\[PILOT-$NUMBER\] /" $1 0030 #fi
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|