All of lore.kernel.org
 help / color / mirror / Atom feed
* git-branch: Actually using the current branch as default start-point
@ 2009-06-16 19:13 Martin Nordholts
  2009-06-16 21:28 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Nordholts @ 2009-06-16 19:13 UTC (permalink / raw)
  To: git

Hi

The git-branch documentation states that the start-point defaults to
the current branch if omitted. I interpret that to mean that

  git checkout origin/somebranch
  git branch newbranch

is equivalent to

  git branch newbranch origin/somebranch

but that is currently not the case. If you checkout a remote branch
then you are not considered to _be_ on the remote branch, so the
start-point will behave as if an arbitrary commit was specified,
i.e. tracking will not be setup correctly.

This is an easy patch and I have something working, I just need to 
finalize it. Does this sound like a sane patch to you?

Best regards,
Martin Nordholts

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

end of thread, other threads:[~2009-06-16 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 19:13 git-branch: Actually using the current branch as default start-point Martin Nordholts
2009-06-16 21:28 ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.