<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/run-command.c, branch v2.45.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-06-10T16:16:19Z</updated>
<entry>
<title>__attribute__: trace2_region_enter_printf() is like "printf"</title>
<updated>2024-06-10T16:16:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-06-08T18:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=89e78c7cdad1ac70d16c0ceb79b3ff95dfadd2bb'/>
<id>urn:sha1:89e78c7cdad1ac70d16c0ceb79b3ff95dfadd2bb</id>
<content type='text'>
The last part of the parameter list the function takes is like
parameters to printf.  Mark it as such.

An existing call that formats a value of type size_t using "%d" was
found by the compiler with the help with this annotation; fix it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>run-command: introduce function to prepare auto-maintenance process</title>
<updated>2024-04-17T15:42:26Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-04-17T06:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b396ee6bed7882af3333eb52333f8a34b648437d'/>
<id>urn:sha1:b396ee6bed7882af3333eb52333f8a34b648437d</id>
<content type='text'>
The `run_auto_maintenance()` function is responsible for spawning a new
`git maintenance run --auto` process. To do so, it sets up the `sturct
child_process` and then runs it by executing `run_command()` directly.
This is rather inflexible in case callers want to modify the child
process somewhat, e.g. to redirect stderr or stdout.

Introduce a new `prepare_auto_maintenance()` function to plug this gap.

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>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>Merge branch 'ma/locate-in-path-for-windows'</title>
<updated>2023-08-09T23:18:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-08-09T23:18:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8cdd5e713d7ba54b9d26ac997408bb745ab55088'/>
<id>urn:sha1:8cdd5e713d7ba54b9d26ac997408bb745ab55088</id>
<content type='text'>
"git bisect visualize" stopped running "gitk" on Git for Windows
when the command was reimplemented in C around Git 2.34 timeframe.
This has been corrected.

* ma/locate-in-path-for-windows:
  docs: update when `git bisect visualize` uses `gitk`
  compat/mingw: implement a native locate_in_PATH()
  run-command: conditionally define locate_in_PATH()
</content>
</entry>
<entry>
<title>run-command: conditionally define locate_in_PATH()</title>
<updated>2023-08-04T04:21:07Z</updated>
<author>
<name>Matthias Aßhauer</name>
<email>mha1993@live.de</email>
</author>
<published>2023-08-04T04:08:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb532b534547d0a6b203baaf2f3379d987f611b9'/>
<id>urn:sha1:bb532b534547d0a6b203baaf2f3379d987f611b9</id>
<content type='text'>
This commit doesn't change any behaviour by itself, but allows us to easily
define compat replacements for locate_in_PATH(). It prepares us for the next
commit that adds a native Windows implementation of locate_in_PATH().

Signed-off-by: Matthias Aßhauer &lt;mha1993@live.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'en/header-split-cache-h-part-3'</title>
<updated>2023-06-29T23:43:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-06-29T23:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a1264a08a1a6e0cd7e510c899cd0ba42dcf1045d'/>
<id>urn:sha1:a1264a08a1a6e0cd7e510c899cd0ba42dcf1045d</id>
<content type='text'>
Header files cleanup.

* en/header-split-cache-h-part-3: (28 commits)
  fsmonitor-ll.h: split this header out of fsmonitor.h
  hash-ll, hashmap: move oidhash() to hash-ll
  object-store-ll.h: split this header out of object-store.h
  khash: name the structs that khash declares
  merge-ll: rename from ll-merge
  git-compat-util.h: remove unneccessary include of wildmatch.h
  builtin.h: remove unneccessary includes
  list-objects-filter-options.h: remove unneccessary include
  diff.h: remove unnecessary include of oidset.h
  repository: remove unnecessary include of path.h
  log-tree: replace include of revision.h with simple forward declaration
  cache.h: remove this no-longer-used header
  read-cache*.h: move declarations for read-cache.c functions from cache.h
  repository.h: move declaration of the_index from cache.h
  merge.h: move declarations for merge.c from cache.h
  diff.h: move declaration for global in diff.c from cache.h
  preload-index.h: move declarations for preload-index.c from elsewhere
  sparse-index.h: move declarations for sparse-index.c from cache.h
  name-hash.h: move declarations for name-hash.c from cache.h
  run-command.h: move declarations for run-command.c from cache.h
  ...
</content>
</entry>
<entry>
<title>Merge branch 'rs/run-command-exec-error-on-noent'</title>
<updated>2023-06-23T18:21:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-06-23T18:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dcedba13b38978f56e5b703bfaff379a86d6e52f'/>
<id>urn:sha1:dcedba13b38978f56e5b703bfaff379a86d6e52f</id>
<content type='text'>
Simplify error message when run-command fails to start a command.

* rs/run-command-exec-error-on-noent:
  run-command: report exec error even on ENOENT
  t1800: loosen matching of error message for bad shebang
</content>
</entry>
<entry>
<title>run-command.h: move declarations for run-command.c from cache.h</title>
<updated>2023-06-21T20:39:53Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-05-16T06:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64c8559575a2d91bad66a3c0a7067d9275dd5905'/>
<id>urn:sha1:64c8559575a2d91bad66a3c0a7067d9275dd5905</id>
<content type='text'>
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>run-command: report exec error even on ENOENT</title>
<updated>2023-06-12T18:00:22Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2023-06-10T14:51:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d224ac286d62bb3a10c3697f220b0c10d4b5f51'/>
<id>urn:sha1:6d224ac286d62bb3a10c3697f220b0c10d4b5f51</id>
<content type='text'>
If execve(2) fails with ENOENT and we report the error, we use the
format "cannot run %s", followed by the actual error message.  For other
errors we use "cannot exec '%s'".

Stop making this subtle distinction and use the second format for all
execve(2) errors.  This simplifies the code and makes the prefix more
precise by indicating the failed operation.  It also allows us to
slightly simplify t1800.16.

On Windows -- which lacks execve(2) -- we already use a single format in
all cases: "cannot spawn %s".

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>Merge branch 'tb/run-command-needs-alloc-h'</title>
<updated>2023-05-19T16:27:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-05-19T16:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75ab1fa5ab167828da918f19c7aebe5ee7a1b304'/>
<id>urn:sha1:75ab1fa5ab167828da918f19c7aebe5ee7a1b304</id>
<content type='text'>
Fix the build problem with NO_PTHREADS defined, a fallout from
recent header file shuffling.

* tb/run-command-needs-alloc-h:
  run-command.c: fix missing include under `NO_PTHREADS`
</content>
</entry>
</feed>
