{"thread":{"id":"14007","subject":"Incorrect default for git stash?","startedAt":"2008-06-17T22:21:23Z","lastAt":"2008-06-23T17:14:50Z","messageCount":8,"participants":["Eric Raible","Junio C Hamano","Jeff King","patrick.higgins@cexp.com","しらいしななこ","David Kågedal"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"80173","messageId":"loom.20080617T220852-922@post.gmane.org","threadId":"14007","inReplyTo":null,"subject":"Incorrect default for git stash?","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-06-17T22:21:23Z","receivedAt":"2008-06-17T22:21:23Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"Does it bother anyone else that the default for\ngit stash is inconsistent with branch & tag?\n\ngit branch -> list branches\ngit tag    -> list tags\ngit stash  -> create a stash\n\nI understand that branches & tags must explicitly named\nand that stashes are by default automatically named.\n\nBut wouldn't it be less surprising to me if the default\nwas 'list' instead of 'save'?\n\n- Eric\n"},{"id":"80178","messageId":"911589C97062424796D53B625CEC0025E46170@USCOBRMFA-SE-70.northamerica.cexp.com","threadId":"14007","inReplyTo":"loom.20080617T220852-922@post.gmane.org","subject":"RE: Incorrect default for git stash?","fromName":"","fromEmail":"patrick.higgins@cexp.com","sentAt":"2008-06-17T22:29:40Z","receivedAt":"2008-06-17T22:29:40Z","isPatch":false,"sender":{"key":"patrick.higgins@cexp.com","avatar":null},"body":"Eric Raible wrote:\n\n> git branch -> list branches\n> git tag    -> list tags\n> git stash  -> create a stash\n\ngit commit -> list commits?\ngit checkout -> list checkouts?\ngit prune -> list prunes?\ngit pull -> list pullables?\n\nWhy would you expect stash to behave like branch and tag?\n"},{"id":"80176","messageId":"7v1w2v66ce.fsf@gitster.siamese.dyndns.org","threadId":"14007","inReplyTo":"loom.20080617T220852-922@post.gmane.org","subject":"Re: Incorrect default for git stash?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-06-17T22:32:01Z","receivedAt":"2008-06-17T22:32:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Eric Raible <raible@gmail.com> writes:\n\n> Does it bother anyone else that the default for\n> git stash is inconsistent with branch & tag?\n>\n> git branch -> list branches\n> git tag    -> list tags\n> git stash  -> create a stash\n>\n> I understand that branches & tags must explicitly named\n> and that stashes are by default automatically named.\n>\n> But wouldn't it be less surprising to me if the default\n> was 'list' instead of 'save'?\n>\n> - Eric\n\nRead the whole thread:\n\nhttp://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784\n"},{"id":"80177","messageId":"20080617223205.GA10830@sigill.intra.peff.net","threadId":"14007","inReplyTo":"loom.20080617T220852-922@post.gmane.org","subject":"Re: Incorrect default for git stash?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-06-17T22:32:05Z","receivedAt":"2008-06-17T22:32:05Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Jun 17, 2008 at 10:21:23PM +0000, Eric Raible wrote:\n\n> Does it bother anyone else that the default for\n> git stash is inconsistent with branch & tag?\n> \n> git branch -> list branches\n> git tag    -> list tags\n> git stash  -> create a stash\n> \n> I understand that branches & tags must explicitly named\n> and that stashes are by default automatically named.\n> \n> But wouldn't it be less surprising to me if the default\n> was 'list' instead of 'save'?\n\nI don't know if it still bothers people, but this was discussed when\nstash was first merged:\n\n  http://kerneltrap.org/mailarchive/git/2007/7/1/250414\n\n-Peff\n"},{"id":"80179","messageId":"loom.20080617T224138-913@post.gmane.org","threadId":"14007","inReplyTo":"7v1w2v66ce.fsf@gitster.siamese.dyndns.org","subject":"Re: Incorrect default for git stash?","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-06-17T22:44:04Z","receivedAt":"2008-06-17T22:44:04Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"Junio C Hamano <gitster <at> pobox.com> writes:\n \n> Read the whole thread:\n> \n> http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784\n\nI'm glad to know that that was already hashed out, even if it\ndidn't end up the way I would have decided.\n\nThanks for the pointer.\n"},{"id":"80181","messageId":"200806172312.m5HNCpWN002685@mi0.bluebottle.com","threadId":"14007","inReplyTo":"loom.20080617T224138-913@post.gmane.org","subject":"Re: Incorrect default for git stash?","fromName":"しらいしななこ","fromEmail":"nanako3@bluebottle.com","sentAt":"2008-06-17T23:12:21Z","receivedAt":"2008-06-17T23:12:21Z","isPatch":false,"sender":{"key":"nanako3@lavabit.com","avatar":"https://gravatar.com/avatar/3777b9e201c5883a62b1a6fdf7c53f2d712d1d80989146063ea861e33aad72a8?d=mp&s=160"},"body":"Quoting Eric Raible <raible@gmail.com>:\n\n> Junio C Hamano <gitster <at> pobox.com> writes:\n>  \n>> Read the whole thread:\n>> \n>> http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63784\n>\n> I'm glad to know that that was already hashed out, even if it\n> didn't end up the way I would have decided.\n\nThen I suspect you did not read the whole thread, as we have not \"ended up\"\nin anywhere yet.\n\nIn particular, in\n\n  http://thread.gmane.org/gmane.comp.version-control.git/63566/focus=63781\n\nJunio maps out the next steps for people, who would want the behavior of\nthe command changed, to take.  None of these follow-up steps have been\ntaken by people who wanted to change the behavior of the command.\n\nI can well imagine an alternative to make the command \"list\" by default\nwhen stash.defaultsave is set to false, and actually suggested it earlier\nwith a patch, but I think the list consensus was negative.\n\n  http://thread.gmane.org/gmane.comp.version-control.git/68539/focus=69045\n\n-- \nNanako Shiraishi\nhttp://ivory.ap.teacup.com/nanako3/\n\n----------------------------------------------------------------------\nGet a free email address with REAL anti-spam protection.\nhttp://www.bluebottle.com/tag/1\n"},{"id":"80188","messageId":"loom.20080618T003534-588@post.gmane.org","threadId":"14007","inReplyTo":"200806172312.m5HNCpWN002685@mi0.bluebottle.com","subject":"Re: Incorrect default for git stash?","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-06-18T00:37:43Z","receivedAt":"2008-06-18T00:37:43Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"しらいしななこ <nanako3 <at> bluebottle.com> writes:\n\n> Then I suspect you did not read the whole thread, as we have not \"ended up\"\n> in anywhere yet.\n\nYou're right, of course.\n\nI was hasty in my gmail, and was referring to\nhttp://article.gmane.org/gmane.comp.version-control.git/85337\nwhen I made that comment.\n\nAnyway, I don't care enough either, especially since Junio\nclaims to be \"quietly rewriting git-stash in C\".\n\n- Eric\n"},{"id":"80728","messageId":"87tzfk9iph.fsf@lysator.liu.se","threadId":"14007","inReplyTo":"911589C97062424796D53B625CEC0025E46170@USCOBRMFA-SE-70.northamerica.cexp.com","subject":"Re: Incorrect default for git stash?","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2008-06-23T17:14:50Z","receivedAt":"2008-06-23T17:14:50Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"<Patrick.Higgins@cexp.com> writes:\n\n> Eric Raible wrote:\n>\n>> git branch -> list branches\n>> git tag    -> list tags\n>> git stash  -> create a stash\n>\n> git commit -> list commits?\n> git checkout -> list checkouts?\n> git prune -> list prunes?\n> git pull -> list pullables?\n>\n> Why would you expect stash to behave like branch and tag?\n\nBecause is kindof does.\n\nI would prefer to have two simple commands\n\n  git stash\n  git unstash\n\nand not bother with named stashes etc (for that I use stgit or normal\nbranches). You'd need a way to clear the stash as well.\n\n-- \nDavid Kågedal\n"}]}