diff options
Diffstat (limited to 'Documentation/user-changeid.txt')
-rw-r--r-- | Documentation/user-changeid.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Documentation/user-changeid.txt b/Documentation/user-changeid.txt index a3015e163b..a4224bd453 100644 --- a/Documentation/user-changeid.txt +++ b/Documentation/user-changeid.txt @@ -10,10 +10,10 @@ drafts of it. By including a unique Change-Id in the commit message, Gerrit can automatically associate a new version of a change back to its original review, even across cherry-picks and rebases. -To be picked up by Gerrit, a Change-Id line must be in the bottom -portion (last paragraph) of a commit message, and may be mixed -together with the Signed-off-by, Acked-by, or other such footers. -For example: +To be picked up by Gerrit, a Change-Id line must be in the footer +(last paragraph) of a commit message, and may be mixed +together with link:user-signedoffby.html[Signed-off-by], Acked-by, +or other such lines. For example: ---- $ git log -1 @@ -40,6 +40,7 @@ rebased to address reviewer comments since its initial inception. To avoid confusion with commit names, Change-Ids are typically prefixed with an uppercase `I`. +[[creation]] Creation -------- @@ -54,6 +55,10 @@ of the local Git repository: $ curl -o .git/hooks/commit-msg http://review.example.com/tools/hooks/commit-msg +Then ensure that the execute bit is set on the hook script: + + $ chmod u+x .git/hooks/commit-msg + For more details, see link:cmd-hook-commit-msg.html[commit-msg]. Change Upload |