login
Header Space

 
 

Re: git push (mis ?)behavior

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Wincent Colaiuta <win@...>
Cc: Miles Bader <miles@...>, Pierre Habouzit <madcoder@...>, Junio C Hamano <gitster@...>, <git@...>
Date: Wednesday, October 3, 2007 - 6:49 am

On 2007-10-03 12:25:22 +0200, Wincent Colaiuta wrote:


My vote is for changing it.

Both "push the current branch" and "push all branches" have their
uses, and both can be specified explicitly, so no problem there. The
problem arises when a user expects one default but get another. There
are two cases:

  1. "push the current branch" is the default, but the user intended
     to push all branches. She ends up pushing only a subset of what
     she wanted, which is easily fixed once she notices what's
     happened.

  2. "push all branches" is the default, but the user intended to push
     only the current branch. She ends up pushing a superset of what
     she wanted, which is not easily fixed if she can't be sure that
     no one else has pulled from the public repo before she notices
     what's happened.

So it all comes down to case (2) mistakes being much harder to fix
than case (1) mistakes. Therefore, we should change the default, since
doing so makes it safer.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
-
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