<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin, branch v2.45.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-04-25T17:34:24Z</updated>
<entry>
<title>Merge branch 'rj/add-i-leak-fix'</title>
<updated>2024-04-25T17:34:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-25T17:34:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e326e520101dcf43a0499c3adc2df7eca30add2d'/>
<id>urn:sha1:e326e520101dcf43a0499c3adc2df7eca30add2d</id>
<content type='text'>
Leakfix.

* rj/add-i-leak-fix:
  add: plug a leak on interactive_add
  add-patch: plug a leak handling the '/' command
  add-interactive: plug a leak in get_untracked_files
  apply: plug a leak in apply_data
</content>
</entry>
<entry>
<title>Merge branch 'ps/run-auto-maintenance-in-receive-pack'</title>
<updated>2024-04-23T22:05:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-23T22:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5c7ffafcea5fe37d435cc684d59eee91696dfb9f'/>
<id>urn:sha1:5c7ffafcea5fe37d435cc684d59eee91696dfb9f</id>
<content type='text'>
The "receive-pack" program (which responds to "git push") was not
converted to run "git maintenance --auto" when other codepaths that
used to run "git gc --auto" were updated, which has been corrected.

* ps/run-auto-maintenance-in-receive-pack:
  builtin/receive-pack: convert to use git-maintenance(1)
  run-command: introduce function to prepare auto-maintenance process
</content>
</entry>
<entry>
<title>Merge branch 'ta/fast-import-parse-path-fix'</title>
<updated>2024-04-23T18:52:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-23T18:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=050e3349792d182ba1fd1ba25135c99103d15ade'/>
<id>urn:sha1:050e3349792d182ba1fd1ba25135c99103d15ade</id>
<content type='text'>
The way "git fast-import" handles paths described in its input has
been tightened up and more clearly documented.

* ta/fast-import-parse-path-fix:
  fast-import: make comments more precise
  fast-import: forbid escaped NUL in paths
  fast-import: document C-style escapes for paths
  fast-import: improve documentation for path quoting
  fast-import: remove dead strbuf
  fast-import: allow unquoted empty path for root
  fast-import: directly use strbufs for paths
  fast-import: tighten path unquoting
</content>
</entry>
<entry>
<title>add: plug a leak on interactive_add</title>
<updated>2024-04-22T23:27:43Z</updated>
<author>
<name>Rubén Justo</name>
<email>rjusto@gmail.com</email>
</author>
<published>2024-04-22T22:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16727404c48ba1c2f43fb966276aee0b8cb24389'/>
<id>urn:sha1:16727404c48ba1c2f43fb966276aee0b8cb24389</id>
<content type='text'>
Plug a leak we have since 5a76aff1a6 (add: convert to use
parse_pathspec, 2013-07-14).

This leak can be triggered with:
    $ git add -p anything

Fixing this leak allows us to mark as leak-free the following tests:

    + t3701-add-interactive.sh
    + t7514-commit-patch.sh

Mark them with "TEST_PASSES_SANITIZE_LEAK=true" to notice and fix
promply any new leak that may be introduced and triggered by them in the
future.

Signed-off-by: Rubén Justo &lt;rjusto@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin/receive-pack: convert to use git-maintenance(1)</title>
<updated>2024-04-17T15:42:26Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-04-17T06:16:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7bf3057d9cf569bcbdf3c1b43cce0eacde98a20b'/>
<id>urn:sha1:7bf3057d9cf569bcbdf3c1b43cce0eacde98a20b</id>
<content type='text'>
In 850b6edefa (auto-gc: extract a reusable helper from "git fetch",
2020-05-06), we have introduced a helper function `run_auto_gc()` that
kicks off `git gc --auto`. The intent of this function was to pass down
the "--quiet" flag to git-gc(1) as required without duplicating this at
all callsites. In 7c3e9e8cfb (auto-gc: pass --quiet down from am,
commit, merge and rebase, 2020-05-06) we then converted callsites that
need to pass down this flag to use the new helper function. This has the
notable omission of git-receive-pack(1), which is the only remaining
user of `git gc --auto` that sets up the proccess manually. This is
probably because it unconditionally passes down the `--quiet` flag and
thus didn't benefit much from the new helper function.

In a95ce12430 (maintenance: replace run_auto_gc(), 2020-09-17) we then
replaced `run_auto_gc()` with `run_auto_maintenance()` which invokes
git-maintenance(1) instead of git-gc(1). This command is the modern
replacement for git-gc(1) and is both more thorough and also more
flexible because administrators can configure which tasks exactly to run
during maintenance.

But due to git-receive-pack(1) not using `run_auto_gc()` in the first
place it did not get converted to use git-maintenance(1) like we do
everywhere else now. Address this oversight and start to use the newly
introduced function `prepare_auto_maintenance()`. This will also make it
easier for us to adapt this code together with all the other callsites
that invoke auto-maintenance in the future.

This removes the last internal user of `git gc --auto`.

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>Merge branch 'rs/date-mode-pass-by-value'</title>
<updated>2024-04-16T21:50:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-16T21:50:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=107313eb11931a66ec4cd3f83bd6c260f296ad19'/>
<id>urn:sha1:107313eb11931a66ec4cd3f83bd6c260f296ad19</id>
<content type='text'>
The codepaths that reach date_mode_from_type() have been updated to
pass "struct date_mode" by value to make them thread safe.

* rs/date-mode-pass-by-value:
  date: make DATE_MODE thread-safe
</content>
</entry>
<entry>
<title>Merge branch 'gt/add-u-commit-i-pathspec-check'</title>
<updated>2024-04-15T21:11:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-15T21:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d75ec4c62715fd768a56523f714fe9ecd2b1abb3'/>
<id>urn:sha1:d75ec4c62715fd768a56523f714fe9ecd2b1abb3</id>
<content type='text'>
"git add -u &lt;pathspec&gt;" and "git commit [-i] &lt;pathspec&gt;" did not
diagnose a pathspec element that did not match any files in certain
situations, unlike "git add &lt;pathspec&gt;" did.

* gt/add-u-commit-i-pathspec-check:
  builtin/add: error out when passing untracked path with -u
  builtin/commit: error out when passing untracked path with -i
  revision: optionally record matches with pathspec elements
</content>
</entry>
<entry>
<title>Merge branch 'ds/fetch-config-parse-microfix'</title>
<updated>2024-04-15T21:11:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-15T21:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c142bc8461b557d88fde0be28faac76ad78053a'/>
<id>urn:sha1:6c142bc8461b557d88fde0be28faac76ad78053a</id>
<content type='text'>
A config parser callback function fell through instead of returning
after recognising and processing a variable, wasting cycles, which
has been corrected.

* ds/fetch-config-parse-microfix:
  fetch: return when parsing submodule.recurse
</content>
</entry>
<entry>
<title>Merge branch 'ma/win32-unix-domain-socket'</title>
<updated>2024-04-15T21:11:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-15T21:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=509cc1d41394ea0d2308288a0cd3170c5774666e'/>
<id>urn:sha1:509cc1d41394ea0d2308288a0cd3170c5774666e</id>
<content type='text'>
Windows binary used to decide the use of unix-domain socket at
build time, but it learned to make the decision at runtime instead.

* ma/win32-unix-domain-socket:
  Win32: detect unix socket support at runtime
</content>
</entry>
<entry>
<title>fast-import: make comments more precise</title>
<updated>2024-04-15T17:06:18Z</updated>
<author>
<name>Thalia Archibald</name>
<email>thalia@archibald.dev</email>
</author>
<published>2024-04-14T01:12:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ab4ad1fa8af719443a8b53fa31fcf84392e21be6'/>
<id>urn:sha1:ab4ad1fa8af719443a8b53fa31fcf84392e21be6</id>
<content type='text'>
The former is somewhat imprecise. The latter became out of sync with the
behavior in e814c39c2f (fast-import: refactor parsing of spaces,
2014-06-18).

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