<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/hooks, branch stable</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=stable</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=stable'/>
<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>hooks/pre-auto-gc-battery: allow gc to run on non-laptops</title>
<updated>2018-07-11T20:45:58+00:00</updated>
<author>
<name>Adam Borowski</name>
<email>kilobyte@angband.pl</email>
</author>
<published>2018-02-28T22:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b10f0e5b9a9ba6d8e9a27b3a81d2fc1d65d9810d'/>
<id>urn:sha1:b10f0e5b9a9ba6d8e9a27b3a81d2fc1d65d9810d</id>
<content type='text'>
Desktops and servers tend to have no power sensor, thus on_ac_power returns
255 ("unknown").  Thus, let's take any answer other than 1 ("battery") as
no contraindication to run gc.

If that tool returns "unknown", there's no point in querying other sources
as it already queried them, and is smarter than us (can handle multiple
adapters).

Reported by: Xin Li &lt;delphij@google.com&gt;
Signed-off-by: Adam Borowski &lt;kilobyte@angband.pl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
(cherry picked from git.git commit 781262c5e7ad4a7813c528803117ed0d2e8c5172)
Signed-off-by: Fredrik Roubert &lt;roubert@google.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrn@google.com&gt;
Change-Id: I51fe2eb1eb879492a61e8e09c86ee34d049036c1
</content>
</entry>
<entry>
<title>Merge "Update commit-msg hook to version from Gerrit 2.14.6"</title>
<updated>2017-12-07T01:13:17+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2017-12-07T01:13:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=1dc36600efb0930f235e5a60d1df4600314e3035'/>
<id>urn:sha1:1dc36600efb0930f235e5a60d1df4600314e3035</id>
<content type='text'>
</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>pre-auto-gc: Add support for Windows</title>
<updated>2017-05-03T11:26:21+00:00</updated>
<author>
<name>Sebastian Schuberth</name>
<email>sschuberth@gmail.com</email>
</author>
<published>2017-03-01T09:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=c9439facdde146e3a8ed6511499379e8b959c467'/>
<id>urn:sha1:c9439facdde146e3a8ed6511499379e8b959c467</id>
<content type='text'>
Previously, this would always have exited with 1 on Windows, causing "git
gc --auto" to abort. Fix this by adding support for Windows.

Change-Id: Ie519b366a11b6b18b2d465e892e738de3f4bbc99
</content>
</entry>
</feed>
