<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/hooks/commit-msg, branch v2.60.2</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.60.2</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.60.2'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2024-04-23T18:31:51+00:00</updated>
<entry>
<title>release: update-hooks: helper for automatically syncing hooks</title>
<updated>2024-04-23T18:31:51+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2024-04-23T16:17:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=5591d99ee239be9116f4879bfea4a538b0b89e9c'/>
<id>urn:sha1:5591d99ee239be9116f4879bfea4a538b0b89e9c</id>
<content type='text'>
These hooks are maintained in other projects.  Add a script to automate
their import so people don't send us changes directly, and we can try to
steer them to the correct place.

Change-Id: Iac0bdb3aae84dda43a1600e73107555b513ce82b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/422177
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
</content>
</entry>
<entry>
<title>Update commit-msg hook</title>
<updated>2023-12-04T17:43:33+00:00</updated>
<author>
<name>Orgad Shaneh</name>
<email>orgad.shaneh@audiocodes.com</email>
</author>
<published>2023-11-30T10:21:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=a50c4e3bc06ca590283d23fff9922628ac69f696'/>
<id>urn:sha1:a50c4e3bc06ca590283d23fff9922628ac69f696</id>
<content type='text'>
Modified in https://gerrit-review.googlesource.com/c/gerrit/+/394841.

Change-Id: I381e48fbdb92b33454219dd9d945a1756e551a77
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/395577
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Orgad Shaneh &lt;orgads@gmail.com&gt;
Commit-Queue: Orgad Shaneh &lt;orgads@gmail.com&gt;
Reviewed-by: Ernesto Rodriguez &lt;guez30nesto@gmail.com&gt;
</content>
</entry>
<entry>
<title>commit-msg: Sync commit-msg from gerrit 3.6.1</title>
<updated>2022-07-29T01:29:19+00:00</updated>
<author>
<name>Evan Benn</name>
<email>evanbenn@chromium.org</email>
</author>
<published>2022-07-28T23:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=a8c34d1075123ca58f56cc93e9564efdb13292b2'/>
<id>urn:sha1:a8c34d1075123ca58f56cc93e9564efdb13292b2</id>
<content type='text'>
This includes:
- Ignore squash commits.
- Update to hash generation.
- Update to Change-Id and trailer generation.

TEST=cp hooks/commit-msg .git/hooks/commit-msg
TEST=git commit -s # right order
TEST=git commit; git commit --amend -s # right order

Change-Id: I4e4a2a02905d330f2863b562d7914fe6567a4118
Signed-off-by: Evan Benn &lt;evanbenn@chromium.org&gt;
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/339554
Tested-by: Evan Benn &lt;evanbenn@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>Revert "commit-msg: Insert Change-Id at start of trailers"</title>
<updated>2020-04-15T07:17:16+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-04-15T06:55:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=1122353683fa5e8a4e2236d4b607310e57a0476a'/>
<id>urn:sha1:1122353683fa5e8a4e2236d4b607310e57a0476a</id>
<content type='text'>
This reverts commit 653f8b711be3344e8c617512629270661b24fa86.

Reason for revert: This requires git-2.15 which is much newer than
repo itself requires.  Lets pull it until we can figure out something
on the Gerrit side.

Bug: https://crbug.com/gerrit/12546
Change-Id: I5148f8a9cab5f0c305c020e31627b4af88cd5c95
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/263012
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>commit-msg: Insert Change-Id at start of trailers</title>
<updated>2020-04-08T01:47:54+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2020-04-08T01:38:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=653f8b711be3344e8c617512629270661b24fa86'/>
<id>urn:sha1:653f8b711be3344e8c617512629270661b24fa86</id>
<content type='text'>
In older versions of Gerrit the Change-Id field was inserted at the
start of the trailers. Commit 68296f71804feab2e0ae18ae33f834a8a41621e4
simplified the trailers code by using git trailers instead of custom
code but now inserts Change-Id at the end of the trailers section.

A consequence of this is that folks who sign-off their commits using
`git commit -s` now has the sign-off appear first followed by
Change-Id. If the user then runs `git commit -s --amend` to update
the change because the Sign-off-by line is not last, git inserts
a 2nd duplicate Signed-off-by line.

This patch simply restores the previous behaviour of the Gerrit
commit-msg hook where Change-Id would be inserted before the
Sign-off-by line to avoid this issue.

Backported from [1] by Thanh Ha.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/262072

Bug: https://crbug.com/12546
Change-Id: I1406c763a3935761247f6771f55e02367f698e6e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/262352
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
</content>
</entry>
<entry>
<title>Update commit-msg hook to version from Gerrit 3.1.3</title>
<updated>2020-02-17T03:57:19+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2020-02-16T03:38:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=3995ebd8c1569f2c3e59c33593fed611a923f428'/>
<id>urn:sha1:3995ebd8c1569f2c3e59c33593fed611a923f428</id>
<content type='text'>
Includes the following commits (redacted to those that are relevant):

da300bd9bd8 - Do not create a change id if gerrit.createChangeId == false
731eb42b8ae - Do not strip out "-- &gt;8 --" comment in commit-msg hook
627d07c2bfc - Handle messages with only comments in the commit-msg hook
68296f71804 - Simplify the hook script using git-interpret-trailers

Change-Id: I7a82836495427df3c5437ba88a9576b47629065f
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255393
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
</content>
</entry>
<entry>
<title>Update commit-msg hook to version from Gerrit 2.14.6</title>
<updated>2017-12-06T18:42:46+00:00</updated>
<author>
<name>Dana Dahlstrom</name>
<email>dahlstrom@google.com</email>
</author>
<published>2017-12-06T18:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=cbe8aeb52b08a6509a22b58f9b395e705673b792'/>
<id>urn:sha1:cbe8aeb52b08a6509a22b58f9b395e705673b792</id>
<content type='text'>
Change-Id: I14403fea4d017b97be5131e695803f121d404af2
</content>
</entry>
<entry>
<title>Update commit-msg hook to version from Gerrit 2.12.1</title>
<updated>2016-03-14T01:08:33+00:00</updated>
<author>
<name>Mike Bjorge</name>
<email>mbjorge@google.com</email>
</author>
<published>2016-02-29T19:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9322964d141d470df70ba6fb2310653ead25c652'/>
<id>urn:sha1:9322964d141d470df70ba6fb2310653ead25c652</id>
<content type='text'>
Change-Id: I31b74aba998f8e83f370a759218777f2557a8872
</content>
</entry>
<entry>
<title>Update the commit-msg hook to the version from Gerrit 2.8.2</title>
<updated>2014-07-15T18:30:06+00:00</updated>
<author>
<name>Dave Borowitz</name>
<email>dborowitz@google.com</email>
</author>
<published>2014-07-15T18:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=a8d539189e1c788663f022cbebd3b5ff28aaeb4b'/>
<id>urn:sha1:a8d539189e1c788663f022cbebd3b5ff28aaeb4b</id>
<content type='text'>
Change-Id: Id911bc6841f488a42d08580de800c3afafa2937e
</content>
</entry>
<entry>
<title>Update the commit-msg hook to the version from Gerrit 2.6</title>
<updated>2013-11-29T10:17:23+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2013-11-29T10:17:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=61df418c599a0359b33b8a65a12660023fc37a2a'/>
<id>urn:sha1:61df418c599a0359b33b8a65a12660023fc37a2a</id>
<content type='text'>
Change-Id: Iaf21ba8d2ceea58973dbc56f0b4ece54500cd997
</content>
</entry>
</feed>
