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

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

From
Jeff King <peff@peff.net>
Date
Oct 19, 2009, 04:34 UTC
Message-ID
<20091019043418.GD7170@coredump.intra.peff.net>
In-Reply-To
<20091019000900.GV6115@genesis.frugalware.org>
On Mon, Oct 19, 2009 at 02:09:00AM +0200, Miklos Vajna wrote:
Show 5 quoted lines
> Add a quick overview about what is OK and what is not to cover all
> cases.
> 
> Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
> Signed-off-by: Jeff King <peff@peff.net>

Please be careful with sign-offs. While your patch text is an adaptation of what I said, and while it is true that I personally would never say anything on the list that was not free for use in git, I did not in fact do such a sign-off, which is what that line is supposed to be documenting.

In this case, I think you probably just wanted to say "text from Jeff King" or even "From: Jeff King <peff@peff.net>".

That being said,
  Signed-off-by: Jeff King <peff@peff.net>
:)
I still have a few comments, though.
Show 5 quoted lines
> +The intent of this option is to pick and choose lines of the diff to
> +apply, or even to munge the lines. So it is safe to:
> ++
> +* remove lines with a "+" (don't stage the addition)
> +* munge any lines with a "+" (stage modified contents)

Do we want to use "munge" here? Maybe something a little more specific like "modify the content of" is more appropriate for documentation.

> +* add lines with a "+" (stage an addition)
> +* convert lines with a " " to "-" (stage removal)
> +* convert lines with a "-" to " " (don't stage removal)

Is " " going to render in an obvious-to-read way? I checked the html version and the manpage version in my terminal, and they looked OK, but I would not be surprised if somebody has a font setup that makes it a little hard to read.

> ++
> +It is a bad idea to:
> ++
Annoyingly, this renders for me as:
           ·   convert lines with a "-" to " " (don’t stage removal)
               It is a bad idea to:
           ·   delete "-" lines

(the spacing of which will hopefully not be destroyed in transit). In other words, the "+" list continuation makes the "it is a bad idea" text part of the "good idea" list, instead of continuing the definition of the "-e" option. I think we can fix it with an open block marker. I'll see what I can do.

-Peff
Previous: Miklos VajnaNext: Jeff King
Message 4 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.