Re: [DRAFT] Branching and merging with git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Thursday, November 16, 2006 - 4:47 pm

linux@horizon.com writes:


This is a greatest write-up I've seen for the past several
months.  I find it very balanced to point out the quirks people
would find difficult and explain why things are so by including
historical notes in appropriate places when needed.  Definitely
Documentation/ material when copyediting is done.

I have finished only the first half because it's not my git day
today, but so far...


You might want to check this with the array in sha1_name.c::get_sha1_basic().
I think tags comes earlier than heads.


It's great that you talk correctly about the latest feature-fix
that is queued for maint but not yet pushed out.


"If there's a side branch which does NOT touch the paths..." I think.


I think you wanted to mention .git/refs/remotes hierarchy and
separate-remote here, but haven't elaborated yet...


refs/tags namespace is not policed at all by git and is treated
as a global namespace, controlled mostly by social convention
that your "upstream" (or central distribution point) supplies
tags for people who use it to synchronize to share.  Also, since
there is no guarantee that tags point at commits (v2.6.11-tree
tag is a pointer to a tree object, for example), there is no
farst-forward check performed for them.

The rule we use to autofollow tags currently is:

When you use shorthand fetch (or pull), we find tags that do not
exist locally, and if the object they point at are already found
in the repository then we fetch them automatically.  So for
example, if you are only tracking my 'maint' and not 'master'
nor 'next', and if you have tags up to v1.4.3.2, your "git fetch
origin" would update your copy of 'maint' and bring the commits
reachable from the tip of my 'maint'.  After that it notices
that v1.4.3.3, v1.4.3.4, v1.4.3.5 tags are in my repository but
missing from yours. It also notices that now you have
v1.4.3.3^{}, v1.4.3.4^{} and v1.4.3.5^{} in your repository, so
it issues another round of "git fetch" internally to fetch these
three tags.  At the same time it would also notice that I have
v1.4.4 tag that you do not have, but v1.4.4^0 commit is not
something you would get by fetching 'maint', so it would not
fetch it automatically.

-
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:
[DRAFT] Branching and merging with git, linux, (Thu Nov 16, 3:17 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Thu Nov 16, 4:47 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Thu Nov 16, 6:09 pm)
Re: [DRAFT] Branching and merging with git, linux, (Thu Nov 16, 6:13 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Thu Nov 16, 6:31 pm)
Re: [DRAFT] Branching and merging with git, linux, (Thu Nov 16, 8:17 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Thu Nov 16, 10:55 pm)
Re: [DRAFT] Branching and merging with git, Theodore Tso, (Fri Nov 17, 8:32 am)
Re: [DRAFT] Branching and merging with git, Sean, (Fri Nov 17, 8:57 am)
Re: [DRAFT] Branching and merging with git, Nguyen Thai Ngoc Duy, (Fri Nov 17, 9:19 am)
Re: [DRAFT] Branching and merging with git, Marko Macek, (Fri Nov 17, 9:25 am)
Re: [DRAFT] Branching and merging with git, Petr Baudis, (Fri Nov 17, 9:33 am)
Re: [DRAFT] Branching and merging with git, Sean, (Fri Nov 17, 9:34 am)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Fri Nov 17, 10:44 am)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Fri Nov 17, 11:21 am)
Re: [DRAFT] Branching and merging with git, linux, (Fri Nov 17, 5:13 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Fri Nov 17, 5:40 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Fri Nov 17, 6:11 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Sun Nov 19, 10:50 am)
Git manuals, Petr Baudis, (Sun Nov 19, 10:59 am)
Re: Git manuals, J. Bruce Fields, (Sun Nov 19, 12:36 pm)
[DRAFT 2] Branching and merging with git, linux, (Mon Nov 20, 4:51 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Wed Nov 22, 4:51 am)
[PATCH] Documentation: add a "git user's manual", J. Bruce Fields, (Sat Nov 25, 9:01 pm)
Re: [DRAFT 2] Branching and merging with git, J. Bruce Fields, (Sun Dec 3, 6:19 pm)
Re: [DRAFT 2] Branching and merging with git, J. Bruce Fields, (Mon Dec 4, 12:23 am)
Re: [DRAFT 2] Branching and merging with git, Johannes Schindelin, (Mon Dec 4, 3:56 am)
Re: [DRAFT] Branching and merging with git, Theodore Tso, (Wed Jan 3, 10:04 am)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Wed Jan 3, 10:08 am)
Re: [DRAFT] Branching and merging with git, linux, (Wed Jan 3, 10:28 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Wed Jan 3, 11:11 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Sun Jan 7, 4:44 pm)
Re: [DRAFT] Branching and merging with git, Junio C Hamano, (Sun Jan 7, 5:24 pm)
Re: [DRAFT] Branching and merging with git, Theodore Tso, (Sun Jan 7, 5:40 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Sun Jan 7, 5:46 pm)
Re: [DRAFT] Branching and merging with git , Horst H. von Brand, (Sun Jan 7, 6:46 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Sun Jan 7, 7:22 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Sun Jan 7, 7:35 pm)
Re: [DRAFT] Branching and merging with git, Guilhem Bonnefille, (Mon Jan 8, 5:38 am)
Re: [DRAFT] Branching and merging with git, Theodore Tso, (Mon Jan 8, 7:03 am)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Mon Jan 8, 7:41 pm)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Mon Jan 8, 9:17 pm)
Re: [DRAFT] Branching and merging with git, Andreas Ericsson, (Tue Jan 9, 1:46 am)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Tue Jan 9, 8:49 am)
Re: [DRAFT] Branching and merging with git, Theodore Tso, (Tue Jan 9, 9:58 am)
Re: [DRAFT] Branching and merging with git, J. Bruce Fields, (Tue Jan 9, 9:15 pm)