Re: Terminology question about remote branches.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Kastrup <dak@...>
Cc: <git@...>
Date: Sunday, August 5, 2007 - 7:52 am

On Sun, Aug 05, 2007 at 01:38:07PM +0200, David Kastrup wrote:


By "I believe", I meant "I am pretty sure this is the way it is
implemented, but I have better things to do than read through
builtin-branch.c right now, so please don't take this as gospel and go
read the code yourself."

But the point of --track is that I don't _have_ to care, and that it
deduces the correct remote/branch combination itself.


Really, "origin/something" refers to "refs/remotes/origin/something",
which we can deduce from the config to be populated by a particular
remote and branch (go read the code).


It could, but at that point, you could just do:

  git-branch newbranch oldbranch
  git-config branch.newbranch.remote someremote
  git-config branch.newbranch.merge remotebranch

Perhaps it's slightly more convenient to be able to do

  git-branch --track someremote:remotebranch newbranch oldbranch

but the real convenience of --track is when it deduces those parameters
itself.

-Peff
-
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:
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 7:38 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 7:52 am)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 8:12 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 12:45 pm)
Re: Terminology question about remote branches., Theodore Tso, (Sun Aug 5, 11:48 am)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 12:23 pm)
Re: Terminology question about remote branches., Randal L. Schwartz, (Sun Aug 5, 12:27 pm)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 8:14 am)