<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/MyFirstObjectWalk.txt, branch v2.46.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.46.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.46.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-03-27T16:24:35Z</updated>
<entry>
<title>MyFirstObjectWalk: add stderr to pipe processing</title>
<updated>2024-03-27T16:24:35Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2024-03-27T11:22:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=95ab557b4b6a11be693200803bbdef53117b8aa7'/>
<id>urn:sha1:95ab557b4b6a11be693200803bbdef53117b8aa7</id>
<content type='text'>
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 &lt;spectral@google.com&gt;
Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstObjectWalk: fix description for counting omitted objects</title>
<updated>2024-03-27T16:24:35Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2024-03-27T11:22:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7250cdb695e7a57521f0f0e8c35e7185ecbc925c'/>
<id>urn:sha1:7250cdb695e7a57521f0f0e8c35e7185ecbc925c</id>
<content type='text'>
Before the changes to count omitted objects, the function
traverse_commit_list() was used and its call cannot be changed to pass
a pointer to an oidset to record omitted objects.

Fix the text to clarify that we now use another traversal function to
be able to pass the pointer to the introduced oidset.

Helped-by: Kyle Lippincott &lt;spectral@google.com&gt;
Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstObjectWalk: fix filtered object walk</title>
<updated>2024-03-27T16:24:34Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2024-03-27T11:22:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af3888890e7eda11c54f0eca96a69b8178f46bff'/>
<id>urn:sha1:af3888890e7eda11c54f0eca96a69b8178f46bff</id>
<content type='text'>
Commit f0d2f84919 (MyFirstObjectWalk: update recommended usage,
2022-03-09) changed a call of parse_list_objects_filter() in a way
that probably never worked: parse_list_objects_filter() always needed
a pointer as its first argument.

Fix this by removing the CALLOC_ARRAY and passing the address of
rev-&gt;filter to parse_list_objects_filter() in accordance to
such a call in revisions.c, for example.

Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstObjectWalk: fix misspelled "builtins/"</title>
<updated>2024-03-27T16:24:34Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2024-03-27T11:22:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34e0b72b198a90a92f5b19b989bc8f0c7bfef148'/>
<id>urn:sha1:34e0b72b198a90a92f5b19b989bc8f0c7bfef148</id>
<content type='text'>
pack-objects.c resides in builtin/ (not builtins/).

Fix the misspelled directory name.

Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstObjectWalk: use additional arg in config_fn_t</title>
<updated>2024-03-27T16:24:34Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2024-03-27T11:22:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d08a189ce29285b3618b65bbeae5b3780d8c0621'/>
<id>urn:sha1:d08a189ce29285b3618b65bbeae5b3780d8c0621</id>
<content type='text'>
Commit a4e7e317f8 (config: add ctx arg to config_fn_t, 2023-06-28)
added a fourth argument to config_fn_t but did not change relevant
function calls in Documentation/MyFirstObjectWalk.txt.

Fix those calls and the example git_walken_config() to use
that additional argument.

Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'vd/adjust-mfow-doc-to-updated-headers'</title>
<updated>2023-07-17T18:30:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-07-17T18:30:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d5bb430ec68303cc8fd8a899ba35d6a8bc857df7'/>
<id>urn:sha1:d5bb430ec68303cc8fd8a899ba35d6a8bc857df7</id>
<content type='text'>
Code snippets in a tutorial document no longer compiled after
recent header shuffling, which have been corrected.

* vd/adjust-mfow-doc-to-updated-headers:
  docs: add necessary headers to Documentation/MFOW.txt
</content>
</entry>
<entry>
<title>docs: add necessary headers to Documentation/MFOW.txt</title>
<updated>2023-07-05T06:11:49Z</updated>
<author>
<name>Vinayak Dev</name>
<email>vinayakdev.sci@gmail.com</email>
</author>
<published>2023-07-02T15:14:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bbd7c7b7c0c2554af7995b19cfc918d07c7f3dbf'/>
<id>urn:sha1:bbd7c7b7c0c2554af7995b19cfc918d07c7f3dbf</id>
<content type='text'>
The tutorial in Documentation/MyFirstObjectWalk.txt
contains the functions trace_printf(), oid_to_hex(),
and pp_commit_easy(), and struct oidset, which are used
without any hint of where they are defined. When the provided
code is compiled, the compiler returns an error, stating that
the functions and the struct are used before declaration. Therefore,include
necessary header files (the ones which have no mentions in the tutorial).

Signed-off-by: Vinayak Dev &lt;vinayakdev.sci@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cache.h: remove this no-longer-used header</title>
<updated>2023-06-21T20:39:53Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-05-16T06:33:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bc5c5ec0446895f5c4139cd470066beb3c4ac6d5'/>
<id>urn:sha1:bc5c5ec0446895f5c4139cd470066beb3c4ac6d5</id>
<content type='text'>
Since this header showed up in some places besides just #include
statements, update/clean-up/remove those other places as well.

Note that compat/fsmonitor/fsm-path-utils-darwin.c previously got
away with violating the rule that all files must start with an include
of git-compat-util.h (or a short-list of alternate headers that happen
to include it first).  This change exposed the violation and caused it
to stop building correctly; fix it by having it include
git-compat-util.h first, as per policy.

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>Documentation: clean up a few misspelled word typos</title>
<updated>2022-09-21T17:28:35Z</updated>
<author>
<name>Jacob Stopak</name>
<email>jacob@initialcommit.io</email>
</author>
<published>2022-09-20T02:45:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=72991ff558585490aa4284c0b8ca1f13e86f0f18'/>
<id>urn:sha1:72991ff558585490aa4284c0b8ca1f13e86f0f18</id>
<content type='text'>
Used GNU "aspell check &lt;filename&gt;" to review various documentation
files with the default aspell dictionary. Ignored false-positives
between american and british english.

Signed-off-by: Jacob Stopak &lt;jacob@initialcommit.io&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstObjectWalk: update recommended usage</title>
<updated>2022-03-09T18:25:27Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-03-09T16:01:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0d2f84919885d4dfb940e79a8e340bd2ad1887d'/>
<id>urn:sha1:f0d2f84919885d4dfb940e79a8e340bd2ad1887d</id>
<content type='text'>
The previous change consolidated traverse_commit_list() and
traverse_commit_list_filtered(). This allows us to simplify the
recommended usage in MyFirstObjectWalk.txt to use this new set of
values.

While here, add some clarification on the difference between the two
methods.

Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
