How to specify a default <start-point> for git branch

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

How to specify a default <start-point> for git branch

From: Lay, Stefan <hidden>
Date: 2016-06-15 22:51:59

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?

Re: How to specify a default <start-point> for git branch

From: Thomas Rast <hidden>
Date: 2016-06-15 22:52:00

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help