diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-02-27 16:04:31 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-02-27 16:04:31 -0800 |
| commit | 45072eefef522935c7cb8cbf5ee8226aba2406ac (patch) | |
| tree | d285109f2a36d81de4f2d653e95f51c390e3f503 | |
| parent | a2082dbdd315aa4dd3f315545e5b3ab3b3e2d894 (diff) | |
| parent | a171dac73496138ba1ac15a6689ee5478c9a88d0 (diff) | |
| download | git-45072eefef522935c7cb8cbf5ee8226aba2406ac.tar.xz | |
Merge branch 'jc/am-whitespace-doc'
"git am --help" now tells readers what actions are available in
"git am --whitespace=<action>", in addition to saying that the
option is passed through to the underlying "git apply".
* jc/am-whitespace-doc:
doc: add shortcut to "am --whitespace=<action>"
| -rw-r--r-- | Documentation/git-am.txt | 3 | ||||
| -rw-r--r-- | apply.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index e080458d6c..463a3c6600 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -128,6 +128,9 @@ include::rerere-options.txt[] These flags are passed to the 'git apply' (see linkgit:git-apply[1]) program that applies the patch. ++ +Valid <action> for the `--whitespace` option are: +`nowarn`, `warn`, `fix`, `error`, and `error-all`. --patch-format:: By default the command will try to detect the patch format @@ -77,7 +77,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); |
