<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin, branch v2.31.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.31.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.31.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-03-19T22:25:40Z</updated>
<entry>
<title>Merge branch 'tb/git-mv-icase-fix'</title>
<updated>2021-03-19T22:25:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-19T22:25:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef486a9ecfc73512d515644cc02f7ad9a229c533'/>
<id>urn:sha1:ef486a9ecfc73512d515644cc02f7ad9a229c533</id>
<content type='text'>
Fix a corner case bug in "git mv" on case insensitive systems,
which was introduced in 2.29 timeframe.

* tb/git-mv-icase-fix:
  git mv foo FOO ; git mv foo bar gave an assert
</content>
</entry>
<entry>
<title>Merge branch 'rs/calloc-array'</title>
<updated>2021-03-19T22:25:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-19T22:25:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=92ccd7b7529a852583c5033ba28b4414cd2f7654'/>
<id>urn:sha1:92ccd7b7529a852583c5033ba28b4414cd2f7654</id>
<content type='text'>
CALLOC_ARRAY() macro replaces many uses of xcalloc().

* rs/calloc-array:
  cocci: allow xcalloc(1, size)
  use CALLOC_ARRAY
  git-compat-util.h: drop trailing semicolon from macro definition
</content>
</entry>
<entry>
<title>Merge branch 'jk/bisect-peel-tag-fix'</title>
<updated>2021-03-19T22:25:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-19T22:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35381b13da846cc6ad620f9f9a5abf1d974d6e9b'/>
<id>urn:sha1:35381b13da846cc6ad620f9f9a5abf1d974d6e9b</id>
<content type='text'>
"git bisect" reimplemented more in C during 2.30 timeframe did not
take an annotated tag as a good/bad endpoint well.  This regression
has been corrected.

* jk/bisect-peel-tag-fix:
  bisect: peel annotated tags to commits
</content>
</entry>
<entry>
<title>Merge branch 'jc/calloc-fix'</title>
<updated>2021-03-19T22:25:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-19T22:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eabacfd9cb58f22ffbacf935bf03747a08640fc7'/>
<id>urn:sha1:eabacfd9cb58f22ffbacf935bf03747a08640fc7</id>
<content type='text'>
Code clean-up.

* jc/calloc-fix:
  xcalloc: use CALLOC_ARRAY() when applicable
</content>
</entry>
<entry>
<title>bisect: peel annotated tags to commits</title>
<updated>2021-03-17T18:24:08Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2021-03-16T15:15:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7730f85594d4595605934e39d1d816ab663d8fa8'/>
<id>urn:sha1:7730f85594d4595605934e39d1d816ab663d8fa8</id>
<content type='text'>
This patch fixes a bug where git-bisect doesn't handle receiving
annotated tags as "git bisect good &lt;tag&gt;", etc. It's a regression in
27257bc466 (bisect--helper: reimplement `bisect_state` &amp; `bisect_head`
shell functions in C, 2020-10-15).

The original shell code called:

  sha=$(git rev-parse --verify "$rev^{commit}") ||
          die "$(eval_gettext "Bad rev input: \$rev")"

which will peel the input to a commit (or complain if that's not
possible). But the C code just calls get_oid(), which will yield the oid
of the tag.

The fix is to peel to a commit. The error message here is a little
non-idiomatic for Git (since it starts with a capital). I've mostly left
it, as it matches the other converted messages (like the "Bad rev input"
we print when get_oid() fails), though I did add an indication that it
was the peeling that was the problem. It might be worth taking a pass
through this converted code to modernize some of the error messages.

Note also that the test does a bare "grep" (not i18ngrep) on the
expected "X is the first bad commit" output message. This matches the
rest of the test script.

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>xcalloc: use CALLOC_ARRAY() when applicable</title>
<updated>2021-03-16T00:51:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-15T22:05:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=486f4bd183b2b9e3355c7d0d47462951c659613d'/>
<id>urn:sha1:486f4bd183b2b9e3355c7d0d47462951c659613d</id>
<content type='text'>
These are for codebase before Git 2.31

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use CALLOC_ARRAY</title>
<updated>2021-03-14T00:00:09Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2021-03-13T16:17:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ca56dadb4b65ccaeab809d80db80a312dc00941a'/>
<id>urn:sha1:ca56dadb4b65ccaeab809d80db80a312dc00941a</id>
<content type='text'>
Add and apply a semantic patch for converting code that open-codes
CALLOC_ARRAY to use it instead.  It shortens the code and infers the
element size automatically.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git mv foo FOO ; git mv foo bar gave an assert</title>
<updated>2021-03-04T01:07:12Z</updated>
<author>
<name>Torsten Bögershausen</name>
<email>tboegi@web.de</email>
</author>
<published>2021-03-01T21:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93c3d297b5060a59715b8e8bc719d8e60ecf8106'/>
<id>urn:sha1:93c3d297b5060a59715b8e8bc719d8e60ecf8106</id>
<content type='text'>
The following sequence, on a case-insensitive file system,
(strictly speeking with core.ignorecase=true)
leads to an assertion failure and leaves .git/index.lock behind.

git init
echo foo &gt;foo
git add foo
git mv foo FOO
git mv foo bar

This regression was introduced in Commit 9b906af657,
"git-mv: improve error message for conflicted file"

The bugfix is to change the "file exist case-insensitive in the index"
into the correct "file exist (case-sensitive) in the index".

This avoids the "assert" later in the code and keeps setting up the
"ce" pointer for ce_stage(ce) done in the next else if.

This fixes
https://github.com/git-for-windows/git/issues/2920

Reported-By: Dan Moseley &lt;Dan.Moseley@microsoft.com&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/transfer-fsck-across-packs'</title>
<updated>2021-03-01T22:02:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-01T22:02:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6ee353d42f389ec9454161b64ffbeb4167edebaa'/>
<id>urn:sha1:6ee353d42f389ec9454161b64ffbeb4167edebaa</id>
<content type='text'>
The approach to "fsck" the incoming objects in "index-pack" is
attractive for performance reasons (we have them already in core,
inflated and ready to be inspected), but fundamentally cannot be
applied fully when we receive more than one pack stream, as a tree
object in one pack may refer to a blob object in another pack as
".gitmodules", when we want to inspect blobs that are used as
".gitmodules" file, for example.  Teach "index-pack" to emit
objects that must be inspected later and check them in the calling
"fetch-pack" process.

* jt/transfer-fsck-across-packs:
  fetch-pack: print and use dangling .gitmodules
  fetch-pack: with packfile URIs, use index-pack arg
  http-fetch: allow custom index-pack args
  http: allow custom index-pack args
</content>
</entry>
<entry>
<title>Merge branch 'jc/push-delete-nothing'</title>
<updated>2021-02-26T00:43:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-26T00:43:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=140045821aa78da3a80a7d7c8f707b955e1ab40d'/>
<id>urn:sha1:140045821aa78da3a80a7d7c8f707b955e1ab40d</id>
<content type='text'>
"git push $there --delete ''" should have been diagnosed as an
error, but instead turned into a matching push, which has been
corrected.

* jc/push-delete-nothing:
  push: do not turn --delete '' into a matching push
</content>
</entry>
</feed>
