login
Header Space

 
 

Re: git push (mis ?)behavior

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pierre Habouzit <madcoder@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Wednesday, October 3, 2007 - 4:57 am

Pierre Habouzit <madcoder@debian.org> writes:

What's "dangerous" for newbies, often ends up being what doesn't
correspond with their mental model.  I think the current default
behavior without any <refspec> specified corresponds well to the
operation of many other git commands (and unix command) in similar
circumstances:  If you don't specify something to operate on, it
essentially uses a wild card and operates on "every reasonable thing"
(e.g., consider "git commit FILE" versus "git commit").

Even if the default were changed, it could very well end up causing many
problems because it _didn't_ push as many heads as the user thought it
would (I don't think I'm the only one that might expect the default
action to be "push everything").  When I was a git newbie, I sometimes
got into situations where I screwed something up because heads I thought
had been pushed to another system actually hadn't been.

To the extent that a command _is_ "dangerous", there's always a tradeoff
between convenience and "danger".  Some systems (e.g. those aimed at
newbies) might have as a goal to do the absolute minimum with every
command and always, always, err on the side of safety.  I don't think git
is that system.

-Miles

-- 
Yo mama's so fat when she gets on an elevator it HAS to go down.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push (mis ?)behavior, Pierre Habouzit, (Thu Sep 27, 9:04 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Thu Sep 27, 3:22 pm)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 1:10 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 3:35 am)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 4:57 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 6:25 am)
Re: git push (mis ?)behavior, Benoit SIGOURE, (Wed Oct 3, 7:10 am)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 6:49 am)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 11:27 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 12:26 pm)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 12:07 pm)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 12:18 pm)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 12:28 pm)
Re: git push (mis ?)behavior, Johannes Schindelin, (Wed Oct 3, 12:44 pm)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 1:02 pm)
Re: git push (mis ?)behavior, Steffen Prohaska, (Thu Oct 4, 10:47 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Oct 4, 11:54 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Thu Oct 4, 12:24 pm)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Oct 4, 1:49 pm)
Re: git push (mis ?)behavior, Junio C Hamano, (Wed Oct 3, 7:08 am)
Re: git push (mis ?)behavior, Karl , (Wed Oct 3, 9:14 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 7:22 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Wed Oct 3, 5:03 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Wed Oct 3, 2:47 am)
Re: git push (mis ?)behavior, Miles Bader, (Wed Oct 3, 4:32 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Wed Oct 3, 1:39 am)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Fri Sep 28, 8:38 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 2:52 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Fri Sep 28, 3:07 am)
Re: git push (mis ?)behavior, Jan Hudec, (Tue Oct 9, 1:05 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Tue Oct 9, 3:23 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 5:11 am)
Re: git push (mis ?)behavior, Johannes Schindelin, (Fri Sep 28, 9:31 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Fri Sep 28, 2:58 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 5:26 am)
Re: git push (mis ?)behavior, Junio C Hamano, (Fri Sep 28, 5:44 am)
Re: git push (mis ?)behavior, Steffen Prohaska, (Fri Sep 28, 6:04 am)
Re: git push (mis ?)behavior, Pierre Habouzit, (Thu Sep 27, 3:36 pm)
Re: git push (mis ?)behavior, Wincent Colaiuta, (Thu Sep 27, 9:30 am)
Re: git push (mis ?)behavior, Benoit SIGOURE, (Thu Sep 27, 11:28 am)
speck-geostationary