<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/sequencer.c, branch v2.43.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.43.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.43.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-02-09T00:22:10Z</updated>
<entry>
<title>Merge branch 'en/header-cleanup' into maint-2.43</title>
<updated>2024-02-09T00:22:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-09T00:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f7a10a3aad344a28f0f30b32a979925a9629533'/>
<id>urn:sha1:0f7a10a3aad344a28f0f30b32a979925a9629533</id>
<content type='text'>
Remove unused header "#include".

* en/header-cleanup:
  treewide: remove unnecessary includes in source files
  treewide: add direct includes currently only pulled in transitively
  trace2/tr2_tls.h: remove unnecessary include
  submodule-config.h: remove unnecessary include
  pkt-line.h: remove unnecessary include
  line-log.h: remove unnecessary include
  http.h: remove unnecessary include
  fsmonitor--daemon.h: remove unnecessary includes
  blame.h: remove unnecessary includes
  archive.h: remove unnecessary include
  treewide: remove unnecessary includes in source files
  treewide: remove unnecessary includes from header files
</content>
</entry>
<entry>
<title>Merge branch 'la/trailer-cleanups' into maint-2.43</title>
<updated>2024-02-09T00:22:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-09T00:22:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=541d0d75e781fad5761414d7a5500b8840f3e5bb'/>
<id>urn:sha1:541d0d75e781fad5761414d7a5500b8840f3e5bb</id>
<content type='text'>
Code clean-up.

* la/trailer-cleanups:
  trailer: use offsets for trailer_start/trailer_end
  trailer: find the end of the log message
  commit: ignore_non_trailer computes number of bytes to ignore
</content>
</entry>
<entry>
<title>treewide: remove unnecessary includes in source files</title>
<updated>2023-12-26T20:04:31Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-12-23T17:14:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eea0e59ffbed6e33d171ace5be13cde9faa41639'/>
<id>urn:sha1:eea0e59ffbed6e33d171ace5be13cde9faa41639</id>
<content type='text'>
Each of these were checked with
   gcc -E -I. ${SOURCE_FILE} | grep ${HEADER_FILE}
to ensure that removing the direct inclusion of the header actually
resulted in that header no longer being included at all (i.e. that
no other header pulled it in transitively).

...except for a few cases where we verified that although the header
was brought in transitively, nothing from it was directly used in
that source file.  These cases were:
  * builtin/credential-cache.c
  * builtin/pull.c
  * builtin/send-pack.c

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trailer: use offsets for trailer_start/trailer_end</title>
<updated>2023-12-20T19:55:04Z</updated>
<author>
<name>Linus Arver</name>
<email>linusa@google.com</email>
</author>
<published>2023-10-20T19:01:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de7c27a1869953158436e60542ea556d78c3f4c2'/>
<id>urn:sha1:de7c27a1869953158436e60542ea556d78c3f4c2</id>
<content type='text'>
Previously these fields in the trailer_info struct were of type "const
char *" and pointed to positions in the input string directly (to the
start and end positions of the trailer block).

Use offsets to make the intended usage less ambiguous. We only need to
reference the input string in format_trailer_info(), so update that
function to take a pointer to the input.

While we're at it, rename trailer_start to trailer_block_start to be
more explicit about these offsets (that they are for the entire trailer
block including other trailers). Ditto for trailer_end.

Reported-by: Glen Choo &lt;glencbz@gmail.com&gt;
Signed-off-by: Linus Arver &lt;linusa@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sequencer: simplify away extra git_config_string() call</title>
<updated>2023-12-08T23:26:23Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2023-12-07T07:26:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea8f9494aba052fd531f674f78dba55f084bdc34'/>
<id>urn:sha1:ea8f9494aba052fd531f674f78dba55f084bdc34</id>
<content type='text'>
In our config callback, we call git_config_string() to copy the incoming
value string into a local string. But we don't modify or store that
string; we just look at it and then free it. We can make the code
simpler by just looking at the value passed into the callback.

Note that we do need to check for NULL, which is the one bit of logic
git_config_string() did for us. And I could even see an argument that we
are abstracting any error-checking of the value behind the
git_config_string() layer. But in practice no other callbacks behave
this way; it is standard to check for NULL and then just look at the
string directly.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ob/sequencer-remove-dead-code'</title>
<updated>2023-09-20T17:44:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-09-20T17:44:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e72b42a52bd7171c5173cfd82bda5c30bc024c8'/>
<id>urn:sha1:0e72b42a52bd7171c5173cfd82bda5c30bc024c8</id>
<content type='text'>
Code clean-up.

* ob/sequencer-remove-dead-code:
  sequencer: remove unreachable exit condition in pick_commits()
</content>
</entry>
<entry>
<title>Merge branch 'pw/rebase-i-after-failure'</title>
<updated>2023-09-14T18:17:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-09-14T18:17:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b995e78147d0ec6bf3af4a7c31e41535409102da'/>
<id>urn:sha1:b995e78147d0ec6bf3af4a7c31e41535409102da</id>
<content type='text'>
Various fixes to the behaviour of "rebase -i" when the command got
interrupted by conflicting changes.

* pw/rebase-i-after-failure:
  rebase -i: fix adding failed command to the todo list
  rebase --continue: refuse to commit after failed command
  rebase: fix rewritten list for failed pick
  sequencer: factor out part of pick_commits()
  sequencer: use rebase_path_message()
  rebase -i: remove patch file after conflict resolution
  rebase -i: move unlink() calls
</content>
</entry>
<entry>
<title>Merge branch 'ob/revert-of-revert-is-reapply'</title>
<updated>2023-09-14T18:16:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-09-14T18:16:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f73604fabf7aa8bc294f346f6a610adb5a464e5e'/>
<id>urn:sha1:f73604fabf7aa8bc294f346f6a610adb5a464e5e</id>
<content type='text'>
The default log message created by "git revert", when reverting a
commit that records a revert, has been tweaked.

* ob/revert-of-revert-is-reapply:
  git-revert.txt: add discussion
  sequencer: beautify subject of reverts of reverts
</content>
</entry>
<entry>
<title>Merge branch 'ob/sequencer-reword-error-message'</title>
<updated>2023-09-13T17:07:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-09-13T17:07:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d070b77d250e3b29b93dac2c39eb222ab49bce52'/>
<id>urn:sha1:d070b77d250e3b29b93dac2c39eb222ab49bce52</id>
<content type='text'>
Update an error message (which would probably never been seen).

* ob/sequencer-reword-error-message:
  sequencer: fix error message on failure to copy SQUASH_MSG
</content>
</entry>
<entry>
<title>sequencer: remove unreachable exit condition in pick_commits()</title>
<updated>2023-09-13T00:32:09Z</updated>
<author>
<name>Oswald Buddenhagen</name>
<email>oswald.buddenhagen@gmx.de</email>
</author>
<published>2023-09-12T10:55:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=63642d58b4b28c3caba6d5ab0c3aa98c4ce54eaa'/>
<id>urn:sha1:63642d58b4b28c3caba6d5ab0c3aa98c4ce54eaa</id>
<content type='text'>
This was introduced by 56dc3ab04 ("sequencer (rebase -i): implement the
'edit' command", 2017-01-02), and was pointless from the get-go: all
early exits from the loop above are returns, so todo_list-&gt;current ==
todo_list-&gt;nr is an invariant after the loop.

Signed-off-by: Oswald Buddenhagen &lt;oswald.buddenhagen@gmx.de&gt;
Acked-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
