<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin, branch v2.46.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.46.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.46.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-09-23T17:33:00Z</updated>
<entry>
<title>Merge branch 'bl/trailers-and-incomplete-last-line-fix' into maint-2.46</title>
<updated>2024-09-23T17:33:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-23T17:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c8d664dfd099375e015b28b633b6caa99f00883'/>
<id>urn:sha1:1c8d664dfd099375e015b28b633b6caa99f00883</id>
<content type='text'>
The interpret-trailers command failed to recognise the end of the
message when the commit log ends in an incomplete line.

* bl/trailers-and-incomplete-last-line-fix:
  interpret-trailers: handle message without trailing newline
</content>
</entry>
<entry>
<title>Revert "Merge branch 'jc/patch-id' into maint-2.46"</title>
<updated>2024-09-16T22:12:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-16T22:12:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d6bf6527ebfab4899d52d5662f3c5054195e6415'/>
<id>urn:sha1:d6bf6527ebfab4899d52d5662f3c5054195e6415</id>
<content type='text'>
This reverts commit 41c952ebacf7e3369e7bee721f768114d65e50c4,
reversing changes made to 712d970c0145b95ce655773e7cd1676f09dfd215.
Keeping a known breakage for now is better than introducing new
regression(s).
</content>
</entry>
<entry>
<title>Merge branch 'jc/config-doc-update' into maint-2.46</title>
<updated>2024-09-13T22:26:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-13T22:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b4bb65a8fc4864525c9c9b1752cde1ca3d6ac63'/>
<id>urn:sha1:8b4bb65a8fc4864525c9c9b1752cde1ca3d6ac63</id>
<content type='text'>
Docfix.

* jc/config-doc-update:
  git-config.1: fix description of --regexp in synopsis
  git-config.1: --get-all description update
</content>
</entry>
<entry>
<title>Merge branch 'ps/stash-keep-untrack-empty-fix' into maint-2.46</title>
<updated>2024-09-13T22:26:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-13T22:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=480124470caf9401e05f9278258c108795d66cad'/>
<id>urn:sha1:480124470caf9401e05f9278258c108795d66cad</id>
<content type='text'>
A corner case bug in "git stash" was fixed.

* ps/stash-keep-untrack-empty-fix:
  builtin/stash: fix `--keep-index --include-untracked` with empty HEAD
</content>
</entry>
<entry>
<title>Merge branch 'ps/index-pack-outside-repo-fix' into maint-2.46</title>
<updated>2024-09-13T22:26:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-13T22:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be344f36318c7f17e852ecb7aadab1247ccc67c7'/>
<id>urn:sha1:be344f36318c7f17e852ecb7aadab1247ccc67c7</id>
<content type='text'>
"git verify-pack" and "git index-pack" started dying outside a
repository, which has been corrected.

* ps/index-pack-outside-repo-fix:
  builtin/index-pack: fix segfaults when running outside of a repo
</content>
</entry>
<entry>
<title>Merge branch 'ps/bundle-outside-repo-fix' into maint-2.46</title>
<updated>2024-09-12T18:02:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-12T18:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4e826a7203a6cc1152d84df818f79456eaba457'/>
<id>urn:sha1:b4e826a7203a6cc1152d84df818f79456eaba457</id>
<content type='text'>
"git bundle unbundle" outside a repository triggered a BUG()
unnecessarily, which has been corrected.

* ps/bundle-outside-repo-fix:
  bundle: default to SHA1 when reading bundle headers
  builtin/bundle: have unbundle check for repo before opening its bundle
</content>
</entry>
<entry>
<title>Merge branch 'jc/patch-id' into maint-2.46</title>
<updated>2024-09-12T18:02:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-09-12T18:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41c952ebacf7e3369e7bee721f768114d65e50c4'/>
<id>urn:sha1:41c952ebacf7e3369e7bee721f768114d65e50c4</id>
<content type='text'>
The patch parser in "git patch-id" has been tightened to avoid
getting confused by lines that look like a patch header in the log
message.
cf. &lt;Zqh2T_2RLt0SeKF7@tanuki&gt;

* jc/patch-id:
  patch-id: tighten code to detect the patch header
  patch-id: rewrite code that detects the beginning of a patch
  patch-id: make get_one_patchid() more extensible
  patch-id: call flush_current_id() only when needed
  t4204: patch-id supports various input format
</content>
</entry>
<entry>
<title>interpret-trailers: handle message without trailing newline</title>
<updated>2024-09-06T16:21:44Z</updated>
<author>
<name>Brian Lyles</name>
<email>brianmlyles@gmail.com</email>
</author>
<published>2024-09-06T14:50:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c02414a99796487a2124e4dbb17c3a88c8606404'/>
<id>urn:sha1:c02414a99796487a2124e4dbb17c3a88c8606404</id>
<content type='text'>
When git-interpret-trailers is used to add a trailer to a message that
does not end in a trailing newline, the new trailer is added on the line
immediately following the message instead of as a trailer block
separated from the message by a blank line.

For example, if a message's text was exactly "The subject" with no
trailing newline present, `git interpret-trailers --trailer
my-trailer=true` will result in the following malformed commit message:

    The subject
    my-trailer: true

While it is generally expected that a commit message should end with a
newline character, git-interpret-trailers should not be returning an
invalid message in this case.

Use `strbuf_complete_line` to ensure that the message ends with a
newline character when reading the input.

Signed-off-by: Brian Lyles &lt;brianmlyles@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin/index-pack: fix segfaults when running outside of a repo</title>
<updated>2024-09-04T14:40:00Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-09-04T06:26:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2dbf97f47870dd71eab319a55b362102d65c209'/>
<id>urn:sha1:b2dbf97f47870dd71eab319a55b362102d65c209</id>
<content type='text'>
It was reported that git-verify-pack(1) has started to crash with Git
v2.46.0 when run outside of a repository. This is another fallout from
c8aed5e8da (repository: stop setting SHA1 as the default object hash,
2024-05-07), where we have stopped setting the default hash algorithm
for `the_repository`. Consequently, code that relies on `the_hash_algo`
will now crash when it hasn't explicitly been initialized, which may be
the case when running outside of a Git repository.

The crash is not in git-verify-pack(1) but instead in git-index-pack(1),
which gets called by the former. Ideally, both of these programs should
be able to identify the hash algorithm used by the packfile and index
without having to rely on external information. But unfortunately, the
format for neither of them is completely self-describing, so it is not
possible to derive that information. This is a design issue that we
should address by introducing a new packfile version that encodes its
object hash.

For now though the more important fix is to not make either of these
programs crash anymore, which we do by falling back to SHA1 when the
object hash is unconfigured. This pessimizes reading packfiles which
use a different hash than SHA1, but restores previous behaviour.

Reported-by: Ilya K &lt;me@0upti.me&gt;
Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-config.1: fix description of --regexp in synopsis</title>
<updated>2024-08-26T18:49:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-08-26T18:48:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=160947040917c340633f79c6f44d3cae4653d53a'/>
<id>urn:sha1:160947040917c340633f79c6f44d3cae4653d53a</id>
<content type='text'>
The synopsis says --regexp=&lt;regexp&gt; but the --regexp option is a
Boolean that says "the name given is not literal, but a pattern to
match the name".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
