From: Derrick Stolee Date: Thu, 31 May 2018 17:41:11 GMT Subject: [RFC PATCH 2/6] DO NOT MERGE: write commit-graph on every fetch Message-ID: <20180531174024.124488-3-dstolee@microsoft.com> In-Reply-To: <20180531174024.124488-1-dstolee@microsoft.com> THIS IS ONLY FOR TESTING TO INCREASE TEST COVERAGE Signed-off-by: Derrick Stolee --- builtin/fetch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/fetch.c b/builtin/fetch.c index 8ee998ea2e..af896e4b74 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -20,6 +20,7 @@ #include "utf8.h" #include "packfile.h" #include "list-objects-filter-options.h" +#include "commit-graph.h" static const char * const builtin_fetch_usage[] = { N_("git fetch [] [ [...]]"), @@ -1480,6 +1481,9 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) close_all_packs(); + if (core_commit_graph) + write_commit_graph_reachable(get_object_directory(), 1); + argv_array_pushl(&argv_gc_auto, "gc", "--auto", NULL); if (verbosity < 0) argv_array_push(&argv_gc_auto, "--quiet"); -- 2.16.2.338.gcfe06ae955