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

Re: [PATCH] Documentation/git-cherry-pick.txt et al.: Fix misleading -n description

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 16, 2008, 15:49 UTC
Message-ID
<7vmykhu8vc.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080716123344.5875.88693.stgit@localhost>
Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
> The manual page of git-cherry-pick and git-revert asserts that -n works
> primarily on the working tree, while in fact the primary object it operates
> on is the index, and the changes only "accidentally" propagate to the
> working tree. This e.g. leads innocent #git IRC folks to believe that you
> can use -n to prepare changes for git-add -i staging.

True, and false ;-) Just "unstage" first in your "git add -i" session and then add only the necessary pieces back to the index (alternatively you can "reset" before entering "git add -i" session).

The change is good; will apply.
Previous: Petr Baudis
Message 2 of 2 in “Documentation/git-cherry-pick.txt et al.: Fix misleading -n description”
  1. Documentation/git-cherry-pick.txt et al.: Fix misleading -n descriptionPetr Baudis, Jul 16, 2008
  2. Junio C HamanoJul 16, 2008

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.