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.