Skip to content

Commit 08b2982

Browse files
bradkinggitster
authored andcommitted
Documentation: cite git-am from git-apply
Users reading git-apply documentation may also be interested in git-am, especially after receiving an email created with git-format-patch. The documentation for git-am already references git-apply. Add the reverse. Signed-off-by: Brad King <brad.king@kitware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3c8710a commit 08b2982

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/git-apply.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ with the `--cache` option the patch is only applied to the index.
2626
Without these options, the command applies the patch only to files,
2727
and does not require them to be in a git repository.
2828

29+
This command applies the patch but does not create a commit. Use
30+
linkgit:git-am[1] to create commits from patches generated by
31+
linkgit:git-format-patch[1] and/or received by email.
32+
2933
OPTIONS
3034
-------
3135
<patch>...::
@@ -242,6 +246,12 @@ If `--index` is not specified, then the submodule commits in the patch
242246
are ignored and only the absence or presence of the corresponding
243247
subdirectory is checked and (if possible) updated.
244248

249+
250+
SEE ALSO
251+
--------
252+
linkgit:git-am[1].
253+
254+
245255
Author
246256
------
247257
Written by Linus Torvalds <torvalds@osdl.org>

0 commit comments

Comments
 (0)