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: Saturday, August 4, 2007 - 8:02 am

On Sat, Aug 04, 2007 at 12:55:43PM +0200, David Kastrup wrote:


Yes, if by "remote branch" you mean a "remote tracking branch".


A "remote tracking branch" is a branch in refs/remotes/* that is updated
by _git-fetch_ (which is in turn called by git-pull) to track a remote's
position of a branch.

A local branch which tracks a remote branch (I don't recall seeing the
phrase "remote-tracking" -- where did this come from?) has the correct
magic in .git/config to pull from a specific remote branch when
'git-pull' is given without arguments.


Yes, although again, I think calling it a "remote-tracking branch" to
mean "a local branch that tracks a remote branch" is confusingly similar
to the more common "remote tracking branch" to mean "a branch in
refs/remotes that track's a remote repository's idea of a branch".


No, the remote branch is not remote-tracking in the sense that you
defined above; it is not meant to be pulled into.

I think you are confused by two uses of the word "track". In one case,
we mean that git-fetch will remember the remote's idea of a branch in
refs/remotes/<remote>/<branch>. In another, we mean that a local branch
will default to pulling from a particular (remote,branch) combination.


Yes, it is very fuzzy. Using "track" for the concept of a local branch
defaulting to a particular (remote,branch) pair for git-pull is, I
think, more recent and less used. If there were another term for this,
it might be more clear.

-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:
Terminology question about remote branches., David Kastrup, (Sat Aug 4, 6:55 am)
Re: Terminology question about remote branches., Junio C Hamano, (Sun Aug 5, 3:31 am)
Re: Terminology question about remote branches., Julian Phillips, (Sun Aug 5, 10:23 am)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 11:09 am)
Re: Terminology question about remote branches., Julian Phillips, (Sun Aug 5, 11:24 am)
Re: Terminology question about remote branches., Steffen Prohaska, (Sun Aug 5, 6:07 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 10:01 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 6:05 am)
Re: Terminology question about remote branches., Steffen Prohaska, (Sun Aug 5, 6:56 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 7:02 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 6:10 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 11:22 am)
Re: Terminology question about remote branches., Jeff King, (Sat Aug 4, 8:02 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 8:36 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 5:21 am)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 5:29 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 5:32 am)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 5:44 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 5:46 am)
Re: Terminology question about remote branches., Lars Hjemli, (Sat Aug 4, 9:07 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 1:00 pm)
Re: Terminology question about remote branches., Julian Phillips, (Sat Aug 4, 1:19 pm)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 2:00 pm)
Re: Terminology question about remote branches., Theodore Tso, (Sat Aug 4, 6:56 pm)
Re: Terminology question about remote branches., David Kastrup, (Sun Aug 5, 3:06 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 9:38 am)
Re: Terminology question about remote branches., Lars Hjemli, (Sat Aug 4, 10:03 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 10:11 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 10:25 am)
Re: Terminology question about remote branches., Julian Phillips, (Sat Aug 4, 10:50 am)
Re: Terminology question about remote branches., Lars Hjemli, (Sat Aug 4, 10:35 am)
Re: Terminology question about remote branches., David Kastrup, (Sat Aug 4, 11:09 am)
Re: Terminology question about remote branches., Jeff King, (Sun Aug 5, 5:24 am)
Re: Terminology question about remote branches., Lars Hjemli, (Sat Aug 4, 11:48 am)