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

Re: [PATCH] git add -e documentation: rephrase note

From
Wesley J. Landaker <wjl@icecavern.net>
Date
Oct 19, 2009, 17:42 UTC
Message-ID
<200910191142.03446.wjl@icecavern.net>
In-Reply-To
<7vaazn7tg4.fsf@alter.siamese.dyndns.org>
On Monday 19 October 2009 01:07:23 Junio C Hamano wrote:
Show 11 quoted lines
> That is Ok; the comment was not about stage vs add.
>
> > But beyond that, yes, you are right that removing a "+" line may have a
> > different conceptual meaning to the user depending on the surrounding
> > text. I wonder if such a "check-list" document really makes much sense,
> > given that using "-e" at all means you need to understand the patch
> > format and what makes sense (i.e., anybody who understands 'patch'
> > knows that you can't just delete context lines and expect it to apply).
>
> Yeah, that is really what I wanted people who are in this discussion to
> eventually realize ;-)
Comment from the peanut gallery:

I still think a quick summary checklist is useful even for a seasoned developer that is intimate with the 'patch' format, as it lets users know what git will do with your patch modifications.

For example, when I first tried "add -e", my first thought was: "Awesome, but, I wonder if git will do the right thing if I modify the patch in THIS way ...". Fortunately, git did the right thing, but I wasn't really sure until I tried it.

Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 10 in “git add -e documentation: rephrase note”
  1. git add -e documentation: rephrase noteMiklos Vajna, Oct 14, 2009
  2. Jeff KingOct 14, 2009
  3. git add -e documentation: rephrase noteMiklos Vajna, Oct 19, 2009
  4. Jeff KingOct 19, 2009
  5. Jeff KingOct 19, 2009
  6. Junio C HamanoOct 19, 2009
  7. Jeff KingOct 19, 2009
  8. Junio C HamanoOct 19, 2009
  9. Wesley J. LandakerOct 19, 2009
  10. Junio C HamanoOct 20, 2009

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.