git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "git commit --amend --only --" nevertheless commits staged changes
@ 2012-07-10 10:41 Marc Strapetz
  2012-07-10 20:11 ` Jeff King
  2012-07-10 20:14 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Marc Strapetz @ 2012-07-10 10:41 UTC (permalink / raw)
  To: git

When using "git commit --amend --only --message <message> --", I'd
expect to have just the commit message of my last commit changed,
according to the man page:

"--only Make a commit only from the paths specified on the command line,
disregarding any contents that have been staged so far. [...] If this
option is specified together with --amend, then no paths need to be
specified, which can be used to amend the last commit without committing
changes that have already been staged."

However, all staged changes are committed as well. So looks like either
the man page or Git is wrong here!?

Tested with 1.7.10.msysgit.1.

-Marc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-10 20:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 10:41 "git commit --amend --only --" nevertheless commits staged changes Marc Strapetz
2012-07-10 20:11 ` Jeff King
2012-07-10 20:14 ` Junio C Hamano
2012-07-10 20:30   ` Jeff King
2012-07-10 20:40     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).