]> git.ipfire.org Git - thirdparty/git.git/commit
docs: add necessary headers to Documentation/MFOW.txt
authorVinayak Dev <vinayakdev.sci@gmail.com>
Sun, 2 Jul 2023 15:14:57 +0000 (20:44 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jul 2023 06:11:49 +0000 (23:11 -0700)
commitbbd7c7b7c0c2554af7995b19cfc918d07c7f3dbf
tree132c6fea5ea864f1e846ff7d42833d150870e843
parentfb7d80edcae482f4fa5d4be0227dc3054734e5f3
docs: add necessary headers to Documentation/MFOW.txt

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 <vinayakdev.sci@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/MyFirstObjectWalk.txt