Re: [PATCH] rev-list: add "--full-objects" flag.
- From
Eric W. Biederman <ebiederm@xmission.com>
- Date
- Jul 12, 2005, 02:38 UTC
- Message-ID
- <m164vg7nqo.fsf@ebiederm.dsl.xmission.com>
- In-Reply-To
- <Pine.LNX.4.58.0507111810380.17536@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 15 quoted lines
> On Mon, 11 Jul 2005, Eric W. Biederman wrote: >> > So if you only get one branch, it will leave the objects that are specific >> > to other branches alone. >> >> Hmm. As I recall reading the code it grabs everything that is >> in .git/refs/*. > > Only by default. > > If you specify a branch (or five) git-clone-pack will grab only that > branch. > > However, I don't think "git clone" (the script) even exposes that, so > right now you'd not even see it - "git clone" only exposes the "get all > the branches by default" behaviour.
Yep.
The question: Does git-upload-pack which gets it's list of objects with "git-rev-list --objects needed1 needed2 needed3 ^has1 ^has2 ^has3" get any history beyond the top of tree of each branch.
As I read the code it does not.
If the code does not get the history I see some problems. In particular merging with a branch is hard because we may not pull the common history point.
Eric