aboutsummaryrefslogtreecommitdiff
path: root/Documentation/MyFirstObjectWalk.adoc
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-05-12 12:03:07 -0700
committerJunio C Hamano <gitster@pobox.com>2025-05-12 13:11:43 -0700
commitba69a6c66d6b349f730bdb3b9e44c3b49dd53e91 (patch)
tree4996effa36ae4adf0ded57dc9630352399a2f244 /Documentation/MyFirstObjectWalk.adoc
parent4511d56e1a4c09abbe0c6b513fd858072b55cbd8 (diff)
downloadgit-ba69a6c66d6b349f730bdb3b9e44c3b49dd53e91.tar.xz
doc: prepare for a world without whatchanged
Some documentation examples reference "whatchanged", either as a placeholder command or an example of source structure. To reduce the need for future edits when `whatchanged` is removed, replace these references with alternatives: - In `MyFirstObjectWalk.adoc`, use `version` as the nearby anchor point for `walken`, instead of `whatchanged`. - In `user-manual.adoc`, cite `show` instead of `whatchanged` as a command whose source lives in the same file as `log`. Helped-by: Elijah Newren <newren@gmail.com> [en: log message] Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/MyFirstObjectWalk.adoc')
-rw-r--r--Documentation/MyFirstObjectWalk.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/MyFirstObjectWalk.adoc b/Documentation/MyFirstObjectWalk.adoc
index d6e9dfdbbe..102a465a48 100644
--- a/Documentation/MyFirstObjectWalk.adoc
+++ b/Documentation/MyFirstObjectWalk.adoc
@@ -83,13 +83,13 @@ int cmd_walken(int argc, const char **argv, const char *prefix)
}
----
-Also add the relevant line in `builtin.h` near `cmd_whatchanged()`:
+Also add the relevant line in `builtin.h` near `cmd_version()`:
----
int cmd_walken(int argc, const char **argv, const char *prefix);
----
-Include the command in `git.c` in `commands[]` near the entry for `whatchanged`,
+Include the command in `git.c` in `commands[]` near the entry for `version`,
maintaining alphabetical ordering:
----