Thread (21 messages) flat view 21 messages, 9 authors, 2016-06-15

Re: git-stash: RFC: Adopt the default behavior to other commands

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:00

Possibly related (same subject, not in this thread)

Hi,

On Tue, 18 Dec 2007, Andreas Ericsson wrote:
Johannes Schindelin wrote:
quoted
In the alternative, you could just scrap all those default actions, 
showing synopses instead.  For all commands, including "git commit", 
"git log", "git fetch", etc.
Like we do for the git wrapper, you mean? Yes, that would be one 
solution, although not a very good one for all commands.
Exactly.  Not a good one.
It's probably not a bad idea for commands where the primary use is 
something else than producing visual output though, such as tag or 
branch, but those handle creation/deletion of stuff, so the default 
action for them is to list stuff of the kind they operate on. I fail to 
see why stash should be any different.
I also fail to see why stash should be any different.  And that's why I 
expect it to have a default operation, which is -- you guessed it -- 
"stash the changes!"

If I am not sure what I am about to do, there is -- wonder of wonders -- 
the "-h" option!  And indeed:

	$ git stash -h
	Usage: /home/gitte/bin/git-stash [  | save | list | show | apply | 
		clear | create ]

So what exactly was your point again?

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help