From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: git-stash: RFC: Adopt the default behavior to other commands Date: Tue, 18 Dec 2007 14:47:42 +0000 (GMT) Message-ID: References: <20071217110322.GH14889@albany.tokkee.org> <506C6191-655D-46AE-A5C2-1335A9044F44@lrde.epita.fr> <7vk5nd53lp.fsf@gitster.siamese.dyndns.org> <57F403E7-AF5B-40F1-AE9D-8EA036675A67@lrde.epita.fr> <7vfxy04ze7.fsf@gitster.siamese.dyndns.org> <20071218105941.GA17251@albany.tokkee.org> <4767D7A2.30703@op5.se> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Sebastian Harl , Junio C Hamano , Benoit Sigoure , git@vger.kernel.org To: Andreas Ericsson X-From: git-owner@vger.kernel.org Tue Dec 18 15:48:22 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4dk5-0002uF-Ur for gcvg-git-2@gmane.org; Tue, 18 Dec 2007 15:48:22 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755959AbXLROr6 (ORCPT ); Tue, 18 Dec 2007 09:47:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755794AbXLROr6 (ORCPT ); Tue, 18 Dec 2007 09:47:58 -0500 Received: from mail.gmx.net ([213.165.64.20]:46466 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752859AbXLROr5 (ORCPT ); Tue, 18 Dec 2007 09:47:57 -0500 Received: (qmail invoked by alias); 18 Dec 2007 14:47:55 -0000 Received: from unknown (EHLO [138.251.11.74]) [138.251.11.74] by mail.gmx.net (mp049) with SMTP; 18 Dec 2007 15:47:55 +0100 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX1/gbgtadqrgHpa5KN+1rRcwKuldhmn6WwIPQ8RSNL /4Ulpaw6DnUhm5 X-X-Sender: gene099@racer.site In-Reply-To: <4767D7A2.30703@op5.se> X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Tue, 18 Dec 2007, Andreas Ericsson wrote: > Johannes Schindelin wrote: > > > On Tue, 18 Dec 2007, Sebastian Harl wrote: > > > > > On Mon, Dec 17, 2007 at 04:31:12PM -0800, Junio C Hamano wrote: > > > > But the original point by Sebastian hasn't been answered. He > > > > wanted to make the command list the stash without arguments. > > > > > > > > This was discussed already in the early days of stash and there > > > > indeed was a suggestion to do so (I think I sided with that), but > > > > the users did not want it. IIRC, the argument went like: "when I > > > > say 'stash', that is because I want a quick and immediate way to > > > > stash, and I do not want a list. If I do not have to have a quick > > > > way, I would create a temporary commit on the current branch, or > > > > switch to a temporary branch and commit there." > > > Well, "git stash save" is just five characters more - I really don't > > > see why this would be less comfortable (and for the really lazy > > > people there are still aliases...). On the other hand (if "list" is > > > the default), we'd get a more consistent interface which imho is > > > imho more important than typing five characters less. > > > > It's more about what you're used to. I had an alias named 'stash' > > long before it became a git command. And now guess how _annoying_ it > > would be to type "git stashgit > > stash save". > > Not nearly as annoying as losing work because of it, and you obviously > *know* what to do when you're done cursing, while clueless-newbie-X just > hops away and uses subversion. Really? Clueless-newbie-X certainly knows how to apply the stash, otherwise she would not have used the command, right? 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. See? Ciao, Dscho