* Incorrect default for git stash?
@ 2008-06-17 22:21 Eric Raible
2008-06-17 22:29 ` Patrick.Higgins
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Eric Raible @ 2008-06-17 22:21 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 8+ messages in thread* RE: Incorrect default for git stash? 2008-06-17 22:21 Incorrect default for git stash? Eric Raible @ 2008-06-17 22:29 ` Patrick.Higgins 2008-06-23 17:14 ` David Kågedal 2008-06-17 22:32 ` Junio C Hamano 2008-06-17 22:32 ` Jeff King 2 siblings, 1 reply; 8+ messages in thread From: Patrick.Higgins @ 2008-06-17 22:29 UTC (permalink / raw) To: raible, git Eric Raible wrote: > git branch -> list branches > git tag -> list tags > git stash -> create a stash git commit -> list commits? git checkout -> list checkouts? git prune -> list prunes? git pull -> list pullables? Why would you expect stash to behave like branch and tag? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 22:29 ` Patrick.Higgins @ 2008-06-23 17:14 ` David Kågedal 0 siblings, 0 replies; 8+ messages in thread From: David Kågedal @ 2008-06-23 17:14 UTC (permalink / raw) To: git <Patrick.Higgins@cexp.com> writes: > Eric Raible wrote: > >> git branch -> list branches >> git tag -> list tags >> git stash -> create a stash > > git commit -> list commits? > git checkout -> list checkouts? > git prune -> list prunes? > git pull -> list pullables? > > Why would you expect stash to behave like branch and tag? Because is kindof does. I would prefer to have two simple commands git stash git unstash and not bother with named stashes etc (for that I use stgit or normal branches). You'd need a way to clear the stash as well. -- David Kågedal ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 22:21 Incorrect default for git stash? Eric Raible 2008-06-17 22:29 ` Patrick.Higgins @ 2008-06-17 22:32 ` Junio C Hamano 2008-06-17 22:44 ` Eric Raible 2008-06-17 22:32 ` Jeff King 2 siblings, 1 reply; 8+ messages in thread From: Junio C Hamano @ 2008-06-17 22:32 UTC (permalink / raw) To: Eric Raible; +Cc: git Eric Raible <raible@gmail.com> writes: > 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 Read the whole thread: http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 22:32 ` Junio C Hamano @ 2008-06-17 22:44 ` Eric Raible 2008-06-17 23:12 ` しらいしななこ 0 siblings, 1 reply; 8+ messages in thread From: Eric Raible @ 2008-06-17 22:44 UTC (permalink / raw) To: git Junio C Hamano <gitster <at> pobox.com> writes: > Read the whole thread: > > http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784 I'm glad to know that that was already hashed out, even if it didn't end up the way I would have decided. Thanks for the pointer. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 22:44 ` Eric Raible @ 2008-06-17 23:12 ` しらいしななこ 2008-06-18 0:37 ` Eric Raible 0 siblings, 1 reply; 8+ messages in thread From: しらいしななこ @ 2008-06-17 23:12 UTC (permalink / raw) To: Eric Raible; +Cc: Junio C Hamano, git Quoting Eric Raible <raible@gmail.com>: > Junio C Hamano <gitster <at> pobox.com> writes: > >> Read the whole thread: >> >> http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784 > > I'm glad to know that that was already hashed out, even if it > didn't end up the way I would have decided. Then I suspect you did not read the whole thread, as we have not "ended up" in anywhere yet. In particular, in http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63781 Junio maps out the next steps for people, who would want the behavior of the command changed, to take. None of these follow-up steps have been taken by people who wanted to change the behavior of the command. I can well imagine an alternative to make the command "list" by default when stash.defaultsave is set to false, and actually suggested it earlier with a patch, but I think the list consensus was negative. http://thread.gmane.org/gmane.comp.version-control.git/68539/focus=69045 -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/ ---------------------------------------------------------------------- Get a free email address with REAL anti-spam protection. http://www.bluebottle.com/tag/1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 23:12 ` しらいしななこ @ 2008-06-18 0:37 ` Eric Raible 0 siblings, 0 replies; 8+ messages in thread From: Eric Raible @ 2008-06-18 0:37 UTC (permalink / raw) To: git しらいしななこ <nanako3 <at> bluebottle.com> writes: > Then I suspect you did not read the whole thread, as we have not "ended up" > in anywhere yet. You're right, of course. I was hasty in my gmail, and was referring to http://article.gmane.org/gmane.comp.version-control.git/85337 when I made that comment. Anyway, I don't care enough either, especially since Junio claims to be "quietly rewriting git-stash in C". - Eric ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Incorrect default for git stash? 2008-06-17 22:21 Incorrect default for git stash? Eric Raible 2008-06-17 22:29 ` Patrick.Higgins 2008-06-17 22:32 ` Junio C Hamano @ 2008-06-17 22:32 ` Jeff King 2 siblings, 0 replies; 8+ messages in thread From: Jeff King @ 2008-06-17 22:32 UTC (permalink / raw) To: Eric Raible; +Cc: git 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-06-23 17:16 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-06-17 22:21 Incorrect default for git stash? Eric Raible 2008-06-17 22:29 ` Patrick.Higgins 2008-06-23 17:14 ` David Kågedal 2008-06-17 22:32 ` Junio C Hamano 2008-06-17 22:44 ` Eric Raible 2008-06-17 23:12 ` しらいしななこ 2008-06-18 0:37 ` Eric Raible 2008-06-17 22:32 ` Jeff King
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.