Incorrect default for git stash?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Incorrect default for git stash?

From: Eric Raible <hidden>
Date: 2016-06-15 22:44:47

Does it bother anyone else that the default for
git stash is inconsistent with branch & tag?

git branch -> list branches
git tag    -> list tags
git stash  -> create a stash

I understand that branches & tags must explicitly named
and that stashes are by default automatically named.

But wouldn't it be less surprising to me if the default
was 'list' instead of 'save'?

- Eric

Re: Incorrect default for git stash?

From: Jeff King <hidden>
Date: 2016-06-15 22:44:47

On Tue, Jun 17, 2008 at 10:21:23PM +0000, Eric Raible wrote:
Does it bother anyone else that the default for
git stash is inconsistent with branch & tag?

git branch -> list branches
git tag    -> list tags
git stash  -> create a stash

I understand that branches & tags must explicitly named
and that stashes are by default automatically named.

But wouldn't it be less surprising to me if the default
was 'list' instead of 'save'?
I don't know if it still bothers people, but this was discussed when
stash was first merged:

  http://kerneltrap.org/mailarchive/git/2007/7/1/250414

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