Re: [PATCH v4 07/13] commit-graph: implement --set-latest

2018-02-23 Thread Derrick Stolee
On 2/22/2018 1:31 PM, Junio C Hamano wrote: Derrick Stolee writes: static struct opts_commit_graph { const char *obj_dir; const char *graph_file; + int set_latest; } opts; ... @@ -89,6 +106,8 @@ static int graph_write(int argc, const char **argv)

Re: [PATCH v4 07/13] commit-graph: implement --set-latest

2018-02-22 Thread Junio C Hamano
Derrick Stolee writes: > static struct opts_commit_graph { > const char *obj_dir; > const char *graph_file; > + int set_latest; > } opts; > ... > @@ -89,6 +106,8 @@ static int graph_write(int argc, const char **argv) > { OPTION_STRING, 'o',

[PATCH v4 07/13] commit-graph: implement --set-latest

2018-02-19 Thread Derrick Stolee
It is possible to have multiple commit graph files in a directory, but only one is important at a time. Use a 'graph-latest' file to point to the important file. Teach git-commit-graph to write 'graph-latest' when given the "--set-latest" option. Using this 'graph-latest' file is more robust than