MyFirstObjectWalk: add stderr to pipe processing
commit95ab557b4b6a11be693200803bbdef53117b8aa7
authorDirk Gouders <dirk@gouders.net>
Wed, 27 Mar 2024 11:22:16 +0000 (27 12:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Mar 2024 16:24:35 +0000 (27 09:24 -0700)
treee2b8c512f1b00dd7300a0877a90370d07eb31882
parent7250cdb695e7a57521f0f0e8c35e7185ecbc925c
MyFirstObjectWalk: add stderr to pipe processing

In the last chapter of this document, pipes are used in commands to
filter out the first/last trace messages.  But according to git(1),
trace messages are sent to stderr if GIT_TRACE is set to '1', so those
commands do not produce the described results.

Fix this by redirecting stderr to stdout prior to the pipe operator
to additionally connect stderr to stdin of the latter command.

Further, while reviewing the above fix, Kyle Lippincott noticed
a second issue with the second of the examples: a missing slash in the
executable path "./bin-wrappers git".

Add the missing slash.

Helped-by: Kyle Lippincott <spectral@google.com>
Signed-off-by: Dirk Gouders <dirk@gouders.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/MyFirstObjectWalk.txt