threads / discuss / 28334

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

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

## tl;dr

2 messages between Sep 8, 2011 and Sep 8, 2011.

replies: 1people: 2as markdown or json

Lay, Stefan· Sep 8, 2011, 08:00 UTC · lore
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?
Thomas Rast· Sep 8, 2011, 10:11 UTC · re: Lay, Stefan · lore

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

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

← back to recent threads