git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reset: silent for some commands, verbose for others?
@ 2011-07-22 16:38 Ori Avtalion
  2011-07-22 17:43 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ori Avtalion @ 2011-07-22 16:38 UTC (permalink / raw)
  To: git

Looking at the reset's command third form:

  reset [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]

* --soft, --merge, --keep are silent.
* --mixed prints "Unstaged changes after reset: ..."
* --hard prints "HAED is now at..."

If all of those commands move HEAD, shouldn't all of them print "HEAD is
now at..."?

Why should only --mixed print the list of unstaged files? e.g. Isn't it
useful for --soft to give a list of "Staged changes"?

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

* Re: reset: silent for some commands, verbose for others?
  2011-07-22 16:38 reset: silent for some commands, verbose for others? Ori Avtalion
@ 2011-07-22 17:43 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2011-07-22 17:43 UTC (permalink / raw)
  To: Ori Avtalion; +Cc: git

Ori Avtalion <ori@avtalion.name> writes:

> Looking at the reset's command third form:
>
>   reset [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
>
> * --soft, --merge, --keep are silent.
> * --mixed prints "Unstaged changes after reset: ..."
> * --hard prints "HAED is now at..."
>
> If all of those commands move HEAD, shouldn't all of them print "HEAD is
> now at..."?
>
> Why should only --mixed print the list of unstaged files? e.g. Isn't it
> useful for --soft to give a list of "Staged changes"?

I would say not, as you would use "soft" only when you _know_ what you
have in the index is what you want, and more importantly it does not
change what is in the index, unlike "mixed" variant.

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

end of thread, other threads:[~2011-07-22 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22 16:38 reset: silent for some commands, verbose for others? Ori Avtalion
2011-07-22 17:43 ` Junio C Hamano

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).