Skip to contentSkip to conversation

reset: silent for some commands, verbose for others?

DISCUSSION Ori Avtalion 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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"?

#1 lore raw
Quoted 8 lines · Ori Avtalion

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

Quoted 5 lines

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.