<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/run-command.c, branch v2.40.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.40.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.40.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-02-08T20:50:03Z</updated>
<entry>
<title>run-command: allow stdin for run_processes_parallel</title>
<updated>2023-02-08T20:50:03Z</updated>
<author>
<name>Emily Shaffer</name>
<email>emilyshaffer@google.com</email>
</author>
<published>2023-02-08T19:21:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=540267304d37d6257edb3144e770693071d8fbb7'/>
<id>urn:sha1:540267304d37d6257edb3144e770693071d8fbb7</id>
<content type='text'>
While it makes sense not to inherit stdin from the parent process to
avoid deadlocking, it's not necessary to completely ban stdin to
children. An informed user should be able to configure stdin safely. By
setting `some_child.process.no_stdin=1` before calling `get_next_task()`
we provide a reasonable default behavior but enable users to set up
stdin streaming for themselves during the callback.

`some_child.process.stdout_to_stderr`, however, remains unmodifiable by
`get_next_task()` - the rest of the run_processes_parallel() API depends
on child output in stderr.

Signed-off-by: Emily Shaffer &lt;emilyshaffer@google.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>run-command.c: remove dead assignment in while-loop</title>
<updated>2023-02-08T20:50:03Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-08T19:21:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5123e6e7bd3b0bf3777cb77e36d141f76d8604a4'/>
<id>urn:sha1:5123e6e7bd3b0bf3777cb77e36d141f76d8604a4</id>
<content type='text'>
Remove code that's been unused since it was added in
c553c72eed6 (run-command: add an asynchronous parallel child
processor, 2015-12-15).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>*: fix typos which duplicate a word</title>
<updated>2023-01-08T01:28:34Z</updated>
<author>
<name>Andrei Rybak</name>
<email>rybak.a.v@gmail.com</email>
</author>
<published>2023-01-07T13:56:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b39a84185e79cff69f9f1f79f1edb014ef27b9c6'/>
<id>urn:sha1:b39a84185e79cff69f9f1f79f1edb014ef27b9c6</id>
<content type='text'>
Fix typos in code comments which repeat various words.  Most of the
cases are simple in that they repeat a word that usually cannot be
repeated in a grammatically correct sentence.  Just remove the
incorrectly duplicated word in these cases and rewrap text, if needed.

A tricky case is usage of "that that", which is sometimes grammatically
correct.  However, an instance of this in "t7527-builtin-fsmonitor.sh"
doesn't need two words "that", because there is only one daemon being
discussed, so replace the second "that" with "the".

Reword code comment "entries exist on on-disk index" in function
update_one in file cache-tree.c, by replacing incorrect preposition "on"
with "in".

Signed-off-by: Andrei Rybak &lt;rybak.a.v@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sx/pthread-error-check-fix'</title>
<updated>2022-12-19T02:46:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-19T02:46:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e09e0dae62f685935dd5b5dd0ec145b37d9cbe7'/>
<id>urn:sha1:4e09e0dae62f685935dd5b5dd0ec145b37d9cbe7</id>
<content type='text'>
Correct pthread API usage.

* sx/pthread-error-check-fix:
  maintenance: compare output of pthread functions for inequality with 0
</content>
</entry>
<entry>
<title>maintenance: compare output of pthread functions for inequality with 0</title>
<updated>2022-12-05T01:15:54Z</updated>
<author>
<name>Seija</name>
<email>doremylover123@gmail.com</email>
</author>
<published>2022-12-02T17:02:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=786e67611d46cd761e1aaa73f85b62f3dda1960a'/>
<id>urn:sha1:786e67611d46cd761e1aaa73f85b62f3dda1960a</id>
<content type='text'>
The documentation for pthread_create and pthread_sigmask state that:

"On success, pthread_create() returns 0;
on error, it returns an error number"

As such, we ought to check for an error
by seeing if the output is not 0.

Checking for "less than" is a mistake
as the error code numbers can be greater than 0.

Signed-off-by: Seija &lt;doremylover123@gmail.com&gt;
Acked-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/no-more-run-command-v'</title>
<updated>2022-11-08T22:15:12Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2022-11-08T22:15:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be4ac3b197f8b4070bdad65dea4a03e1389410a6'/>
<id>urn:sha1:be4ac3b197f8b4070bdad65dea4a03e1389410a6</id>
<content type='text'>
Simplify the run-command API.

* rs/no-more-run-command-v:
  replace and remove run_command_v_opt()
  replace and remove run_command_v_opt_cd_env_tr2()
  replace and remove run_command_v_opt_tr2()
  replace and remove run_command_v_opt_cd_env()
  use child_process members "args" and "env" directly
  use child_process member "args" instead of string array variable
  sequencer: simplify building argument list in do_exec()
  bisect--helper: factor out do_bisect_run()
  bisect: simplify building "checkout" argument list
  am: simplify building "show" argument list
  run-command: fix return value comment
  merge: remove always-the-same "verbose" arguments
</content>
</entry>
<entry>
<title>replace and remove run_command_v_opt()</title>
<updated>2022-10-30T18:04:51Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2022-10-30T11:55:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ddbb47fde9b6d8cd9f3728847a378f634318cfb1'/>
<id>urn:sha1:ddbb47fde9b6d8cd9f3728847a378f634318cfb1</id>
<content type='text'>
Replace the remaining calls of run_command_v_opt() with run_command()
calls and explict struct child_process variables.  This is more verbose,
but not by much overall.  The code becomes more flexible, e.g. it's easy
to extend to conditionally add a new argument.

Then remove the now unused function and its own flag names, simplifying
the run-command API.

Suggested-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>replace and remove run_command_v_opt_cd_env_tr2()</title>
<updated>2022-10-30T18:04:50Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2022-10-30T11:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef249b398e26dd76f473ce83a35219c520f6fdbe'/>
<id>urn:sha1:ef249b398e26dd76f473ce83a35219c520f6fdbe</id>
<content type='text'>
The convenience function run_command_v_opt_cd_env_tr2() has no external
callers left.  Inline it and remove it from the API.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>replace and remove run_command_v_opt_tr2()</title>
<updated>2022-10-30T18:04:48Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2022-10-30T11:52:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d82dbbd849fadd9d61d9489a03b429b6d1413c81'/>
<id>urn:sha1:d82dbbd849fadd9d61d9489a03b429b6d1413c81</id>
<content type='text'>
The convenience function run_command_v_opt_tr2() is only used by a
single caller.  Use struct child_process and run_command() directly
instead and remove the underused function.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>replace and remove run_command_v_opt_cd_env()</title>
<updated>2022-10-30T18:04:47Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2022-10-30T11:51:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb5b6b57d0e9fba0e50871ece4ea79e76cd61a36'/>
<id>urn:sha1:eb5b6b57d0e9fba0e50871ece4ea79e76cd61a36</id>
<content type='text'>
run_command_v_opt_cd_env() is only used in an example in a comment.  Use
the struct child_process member "env" and run_command() directly instead
and then remove the unused convenience function.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
</feed>
