Re: [PATCH] rev-list: add "--objects=self-sufficient" flag.

2005-07-07 Thread Linus Torvalds
On Thu, 7 Jul 2005, Junio C Hamano wrote: > > - if (!strcmp(arg, "--objects")) { > + if (!strncmp(arg, "--objects", 9)) { > + if (!strcmp(arg+9, "=self-sufficient")) > + objects_self_sufficient = 1; This is nasty - if you mi

[PATCH] rev-list: add "--objects=self-sufficient" flag.

2005-07-07 Thread Junio C Hamano
When --objects=self-sufficient is specified instead of usual "--objects", rev-list shows all objects reachable from trees associated with the commits in its output. This can be used to ensure that a single pack can be used to recreate the tree associated with every commit in it. Signed-off-by: Ju