git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] docs: demonstrate difference between 'am' and 'apply'

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 16, 2020, 22:12 UTC
Message-ID
<xmqq7drpakho.fsf@gitster.c.googlers.com>
In-Reply-To
<xmqqk0vpalcy.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> So, I am moderately against everything under 'use git apply' line of
> the patch.  However, I do think it is a good idea to add a note
> somewhere in the manual of "am" to say something along the lines of
> the following (placed around here, or even immediately before we
> give the sample patch we used in the above example):
>
>     While an output of "diff format-patch" (see above/below for an
>     example) is meant to be made into a commit with "git am",
>     what you have may only be an output of "git diff" without log
>     message and is not meant to be directly made into a commit.  In
>     such a case, you may want to refer to git-apply[1] to learn how
>     to apply such a change to your working tree (and optionally to
>     the index).
>    
> It would be a good idea to redirect those readers who are looking at
> "git am" when (perhaps realizing) they should rather be looking at
Again, s/realizing/without &/; Sorry for the noise.
> "git apply" earlier rather than later, so perhaps taking "see below"
> side and giving it as a side-note before the example starts might be
> better.
Thanks.
Previous: Junio C HamanoNext: Emily Shaffer
Message 7 of 14 in “some small clarifying docfixes”
  1. 0/2 some small clarifying docfixesEmily Shaffer, Oct 16, 2020
  2. 2/2 docs: demonstrate difference between 'am' and 'apply'Emily Shaffer, Oct 16, 2020
  3. Jeff KingOct 16, 2020
  4. Junio C HamanoOct 16, 2020
  5. Junio C HamanoOct 16, 2020
  6. Junio C HamanoOct 16, 2020
  7. Junio C HamanoOct 16, 2020
  8. Emily ShafferOct 22, 2020
  9. Junio C HamanoOct 23, 2020
  10. 1/2 MyFirstContribution: clarify asciidoc dependencyEmily Shaffer, Oct 16, 2020
  11. Junio C HamanoOct 16, 2020
  12. Taylor BlauOct 16, 2020
  13. Junio C HamanoOct 16, 2020
  14. Emily ShafferOct 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.