Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-07 Thread Derrick Stolee
On 2/7/2018 10:08 AM, SZEDER Gábor wrote: On Mon, Feb 5, 2018 at 5:06 PM, Derrick Stolee wrote: On 2/2/2018 10:32 AM, SZEDER Gábor wrote: In my git repo, with 9 pack files at the moment, i.e. not that big a repo and not that many pack files: $ time ./git commit-graph

Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-07 Thread SZEDER Gábor
On Mon, Feb 5, 2018 at 5:06 PM, Derrick Stolee wrote: > On 2/2/2018 10:32 AM, SZEDER Gábor wrote: >> In my git repo, with 9 pack files at the moment, i.e. not that big a >> repo and not that many pack files: >> >>$ time ./git commit-graph --write --update-head >>

Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-05 Thread Derrick Stolee
On 2/2/2018 10:32 AM, SZEDER Gábor wrote: Teach Git to write a commit graph file by checking all packed objects to see if they are commits, then store the file in the given pack directory. I'm afraid that scanning all packed objects is a bit of a roundabout way to approach this. In my git

Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-02 Thread SZEDER Gábor
> Teach Git to write a commit graph file by checking all packed objects > to see if they are commits, then store the file in the given pack > directory. I'm afraid that scanning all packed objects is a bit of a roundabout way to approach this. In my git repo, with 9 pack files at the moment,

Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-01 Thread SZEDER Gábor
> Teach Git to write a commit graph file by checking all packed objects > to see if they are commits, then store the file in the given pack > directory. > > Signed-off-by: Derrick Stolee > --- > Makefile | 1 + > commit-graph.c | 376 >

Re: [PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-02-01 Thread Jonathan Tan
On Tue, 30 Jan 2018 16:39:33 -0500 Derrick Stolee wrote: > +#define GRAPH_SIGNATURE 0x43475048 /* "CGPH" */ > +#define GRAPH_CHUNKID_OIDFANOUT 0x4f494446 /* "OIDF" */ > +#define GRAPH_CHUNKID_OIDLOOKUP 0x4f49444c /* "OIDL" */ > +#define GRAPH_CHUNKID_DATA 0x43444154 /* "CDAT"

[PATCH v2 04/14] commit-graph: implement construct_commit_graph()

2018-01-30 Thread Derrick Stolee
Teach Git to write a commit graph file by checking all packed objects to see if they are commits, then store the file in the given pack directory. Signed-off-by: Derrick Stolee --- Makefile | 1 + commit-graph.c | 376