From ba69a6c66d6b349f730bdb3b9e44c3b49dd53e91 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 12 May 2025 12:03:07 -0700 Subject: 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 [en: log message] Signed-off-by: Junio C Hamano --- Documentation/MyFirstObjectWalk.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Documentation/MyFirstObjectWalk.adoc') 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: ---- -- cgit v1.3