From a171dac73496138ba1ac15a6689ee5478c9a88d0 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 14 Feb 2024 10:44:01 -0800 Subject: doc: add shortcut to "am --whitespace=" We refer readers of "git am --help" to "git apply --help" for many options that are passed through, and most of them are simple booleans, but --whitespace takes from a set of actions whose names may slip users' minds. Give a list of them in "git am --help" to reduce one level of redirection only to find out what they are. In the helper function to parse the available options, there was a helpful comment reminding the developer to update list of s in the completion script. Mention the two documentation pages there as well. Signed-off-by: Junio C Hamano --- apply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apply.c') diff --git a/apply.c b/apply.c index 3d69fec836..4e57831aeb 100644 --- a/apply.c +++ b/apply.c @@ -78,7 +78,8 @@ static int parse_whitespace_option(struct apply_state *state, const char *option return 0; } /* - * Please update $__git_whitespacelist in git-completion.bash + * Please update $__git_whitespacelist in git-completion.bash, + * Documentation/git-apply.txt, and Documentation/git-am.txt * when you add new options. */ return error(_("unrecognized whitespace option '%s'"), option); -- cgit 1.2.3-korg