The second spin for this series. --- Changes since v1: * Added Emily to Cc in the hope for a review * Remove superfluous tags from [1/5] and [3/5] * Replace bashism `|&` by `2>&1 |` in [5/5] --- Dirk Gouders (5): MyFirstObjectWalk: use additional arg in config_fn_t MyFirstObjectWalk: fix misspelled "builtins/" MyFirstObjectWalk: fix filtered object walk MyFirstObjectWalk: fix description for counting omitted objects MyFirstObjectWalk: add stderr to pipe processing Documentation/MyFirstObjectWalk.txt | 36 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) Range-diff against v1: 1: 15b74566e0 ! 1: babf04295e MyFirstObjectWalk: use additional arg in config_fn_t @@ Commit message Fix those calls and the example git_walken_config() to use that additional argument. - Fixes: a4e7e317 (config: add ctx arg to config_fn_t) - Cc: Glen Choo <glencbz@xxxxxxxxx> Signed-off-by: Dirk Gouders <dirk@xxxxxxxxxxx> ## Documentation/MyFirstObjectWalk.txt ## 2: c1ac705840 = 2: ab0b820df7 MyFirstObjectWalk: fix misspelled "builtins/" 3: 0f67a161ef ! 3: fac6886af3 MyFirstObjectWalk: fix filtered object walk @@ Commit message rev->filter to parse_list_objects_filter() in accordance to such a call in revisions.c, for example. - Fixes: f0d2f849 (MyFirstObjectWalk: update recommended usage) - Cc: Derrick Stolee <stolee@xxxxxxxxx> Signed-off-by: Dirk Gouders <dirk@xxxxxxxxxxx> ## Documentation/MyFirstObjectWalk.txt ## 4: 637070dd48 = 4: 33a1845889 MyFirstObjectWalk: fix description for counting omitted objects 5: a2d30eff21 ! 5: 64c36dbf16 MyFirstObjectWalk: add stderr to pipe processing @@ Commit message 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 using the operator '|&' to additionally connect stderr to - stdin of the latter command. + Fix this by redirecting stderr to stdout prior to the pipe operator + to additionally connect stderr to stdin of the latter command. Signed-off-by: Dirk Gouders <dirk@xxxxxxxxxxx> @@ Documentation/MyFirstObjectWalk.txt: those lines without having to recompile. ---- -$ GIT_TRACE=1 ./bin-wrappers/git walken | head -n 10 -+$ GIT_TRACE=1 ./bin-wrappers/git walken |& head -n 10 ++$ GIT_TRACE=1 ./bin-wrappers/git walken 2>&1 | head -n 10 ---- Take a look at the top commit with `git show` and the object ID you printed; it @@ Documentation/MyFirstObjectWalk.txt: of the first handful: ---- $ make -$ GIT_TRACE=1 ./bin-wrappers git walken | tail -n 10 -+$ GIT_TRACE=1 ./bin-wrappers git walken |& tail -n 10 ++$ GIT_TRACE=1 ./bin-wrappers git walken 2>&1 | tail -n 10 ---- The last commit object given should have the same OID as the one we saw at the -- 2.43.0