Re: [PATCH 2/2] push: Add '--current', which pushes only the current branch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steffen Prohaska
Date: Monday, November 19, 2007 - 2:54 am

On Nov 19, 2007, at 9:35 AM, Junio C Hamano wrote:


My main point is that I want to have something that _always_
works as expected without manually tweaking the configuration
variables.  In a setting with shared repos, "git push" doesn't.
Sooner or later it will complain about refusing an update
because of non-fast-forward.  The only thing that currently
works it "git push $correct-remote $correct-branch", but this
depends on the local configuration and on the branch you're on.

"git push --current" would always work as expected; without
setting any configuration variable.

I can tell my users that their workflow is

	git checkout foo
	git pull
	work work work ...
	git push --current

That simple.  I'm fine with that.



I'll not change the default.  I'll only add the --current switch.

	Steffen




-
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:
What's cooking in git/spearce.git (topics), Shawn O. Pearce, (Sun Oct 21, 11:32 pm)
Re: What's cooking in git/spearce.git (topics), Jeff King, (Sun Oct 21, 11:59 pm)
Re: What's cooking in git/spearce.git (topics), Jeff King, (Mon Oct 22, 12:16 am)
Re: What's cooking in git/spearce.git (topics), Pierre Habouzit, (Mon Oct 22, 12:24 am)
Re: What's cooking in git/spearce.git (topics), Steffen Prohaska, (Mon Oct 22, 8:27 am)
Re: What's cooking in git/spearce.git (topics), Junio C Hamano, (Mon Oct 22, 6:26 pm)
Re: What's cooking in git/spearce.git (topics), Linus Torvalds, (Mon Oct 22, 7:32 pm)
Re: What's cooking in git/spearce.git (topics), Shawn O. Pearce, (Mon Oct 22, 8:34 pm)
Re: What's cooking in git/spearce.git (topics), Jeff King, (Mon Oct 22, 8:48 pm)
What's cooking in git.git (topics), Junio C Hamano, (Wed Oct 24, 5:51 am)
Re: What's cooking in git.git (topics), David Symonds, (Wed Oct 24, 6:09 am)
Re: What's cooking in git.git (topics), Scott Parish, (Wed Oct 24, 9:08 am)
Re: What's cooking in git.git (topics), Andreas Ericsson, (Wed Oct 24, 11:27 am)
Re: What's cooking in git.git (topics), Scott Parish, (Wed Oct 24, 5:35 pm)
What's cooking in git.git (topics), Junio C Hamano, (Wed Oct 31, 10:41 pm)
Re: What's cooking in git.git (topics), Linus Torvalds, (Thu Nov 1, 11:33 am)
Re: What's cooking in git.git (topics), Geert Bosch, (Thu Nov 1, 12:19 pm)
Re: What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 1, 1:27 pm)
Re: What's cooking in git.git (topics), Mike Hommey, (Thu Nov 1, 1:47 pm)
Re: What's cooking in git.git (topics), Geert Bosch, (Thu Nov 1, 2:17 pm)
Re: What's cooking in git.git (topics), Theodore Tso, (Thu Nov 1, 2:18 pm)
Re: What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 1, 2:20 pm)
Re: What's cooking in git.git (topics), Melchior FRANZ, (Thu Nov 1, 2:26 pm)
Re: What's cooking in git.git (topics), Johan Herland, (Thu Nov 1, 2:32 pm)
Re: What's cooking in git.git (topics), Brian Downing, (Thu Nov 1, 2:41 pm)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Thu Nov 1, 2:42 pm)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Thu Nov 1, 2:44 pm)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Thu Nov 1, 2:46 pm)
Re: What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 1, 2:51 pm)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Thu Nov 1, 2:57 pm)
Re: What's cooking in git.git (topics), Linus Torvalds, (Thu Nov 1, 3:05 pm)
Re: What's cooking in git.git (topics), Bill Lear, (Thu Nov 1, 3:26 pm)
Re: What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 1, 3:50 pm)
Re: What's cooking in git.git (topics), Jonas Fonseca, (Thu Nov 1, 5:00 pm)
Re: What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 1, 5:32 pm)
Re: What's cooking in git.git (topics), Petr Baudis, (Thu Nov 1, 7:19 pm)
Re: What's cooking in git.git (topics), Miles Bader, (Thu Nov 1, 11:06 pm)
Re: What's cooking in git.git (topics), Andreas Ericsson, (Fri Nov 2, 2:38 am)
Re: What's cooking in git.git (topics), Andreas Ericsson, (Fri Nov 2, 2:39 am)
Re: What's cooking in git.git (topics), Wincent Colaiuta, (Fri Nov 2, 3:26 am)
Re: What's cooking in git.git (topics), Johannes Schindelin, (Fri Nov 2, 4:03 am)
Re: What's cooking in git.git (topics), Miles Bader, (Fri Nov 2, 8:13 am)
What's cooking in git.git (topics), Junio C Hamano, (Sat Nov 3, 9:14 pm)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Sun Nov 4, 4:38 am)
What's cooking in git.git (topics), Junio C Hamano, (Thu Nov 8, 1:08 am)
Re: What's cooking in git.git (topics), Steffen Prohaska, (Thu Nov 8, 1:44 pm)
What's cooking in git.git (topics), Junio C Hamano, (Mon Nov 12, 12:09 am)
Re: What's cooking in git.git (topics), Johannes Schindelin, (Mon Nov 12, 5:21 am)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Mon Nov 12, 5:26 am)
Re: What's cooking in git.git (topics), Johannes Schindelin, (Mon Nov 12, 5:33 am)
[PATCH] rebase: brown paper bag fix after the detached HEA ..., Johannes Schindelin, (Mon Nov 12, 6:11 am)
Re: What's cooking in git.git (topics), Steffen Prohaska, (Mon Nov 12, 7:27 am)
Re: What's cooking in git.git (topics), Pierre Habouzit, (Mon Nov 12, 7:53 am)
Re: What's cooking in git.git (topics), Johannes Schindelin, (Mon Nov 12, 8:02 am)
What's cooking in git.git (topics), Junio C Hamano, (Wed Nov 14, 5:18 pm)
Re: What's cooking in git.git (topics), Johannes Schindelin, (Wed Nov 14, 5:49 pm)
Re: What's cooking in git.git (topics), Jeff King, (Sat Nov 17, 5:40 am)
Re: [PATCH 2/2] push: Add '--current', which pushes only t ..., Steffen Prohaska, (Sun Nov 18, 11:41 pm)
Re: [PATCH 2/2] push: Add '--current', which pushes only t ..., Steffen Prohaska, (Mon Nov 19, 2:54 am)