git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to specify a default <start-point> for git branch
@ 2011-09-08  8:00 Lay, Stefan
  2011-09-08 10:11 ` Thomas Rast
  0 siblings, 1 reply; 2+ messages in thread
From: Lay, Stefan @ 2011-09-08  8:00 UTC (permalink / raw)
  To: git@vger.kernel.org, jgit-dev@eclipse.org; +Cc: manuel.doniger@googlemail.com

Is it possible in git to configure a default <start-point> for the git-branch command?

For some workflows it could be useful to define e.g. a remote-tracking branch as the default <start-point> for new branches. Then there would be a tracking configuration for each created branch and tools like ALM tools could easily determine the remote repository.

For EGit-/JGit-development there is a proposal in Gerrit to add a new config parameter workflow.defaultsourceref (http://egit.eclipse.org/r/#change,4168). I suggested to use workflow.branchstartpoint instead.

What do you think about such a property?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to specify a default <start-point> for git branch
  2011-09-08  8:00 How to specify a default <start-point> for git branch Lay, Stefan
@ 2011-09-08 10:11 ` Thomas Rast
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Rast @ 2011-09-08 10:11 UTC (permalink / raw)
  To: Lay, Stefan
  Cc: git@vger.kernel.org, jgit-dev@eclipse.org,
	manuel.doniger@googlemail.com

Lay, Stefan wrote:
> Is it possible in git to configure a default <start-point> for the git-branch command?

Literally as you propose it's probably not going to happen.  It would
break every script ever written that uses "git branch <foo>" to start
a new branch at the current commit.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-08 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08  8:00 How to specify a default <start-point> for git branch Lay, Stefan
2011-09-08 10:11 ` Thomas Rast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).