diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2019-01-19 23:21:19 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-24 00:14:08 +0300 |
commit | e59c615e3c91c481587f9a13d05886082f518cec (patch) | |
tree | 454a6c867f7ec8146dc4c278c4ffa69982689695 /commit-graph.c | |
parent | 7c7b8a7fc7c87011d5b3e384122ce8b23ef280e8 (diff) |
commit-graph write: remove empty line for readability
Remove the empty line between a QSORT(...) and the subsequent oideq()
for-loop. This makes it clearer that the QSORT(...) is being done so
that we can run the oideq() loop on adjacent OIDs. Amends code added
in 08fd81c9b6 ("commit-graph: implement write_commit_graph()",
2018-04-02).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
-rw-r--r-- | commit-graph.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/commit-graph.c b/commit-graph.c index 936119b1f9..d4a7280fa1 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -896,7 +896,6 @@ void write_commit_graph(const char *obj_dir, close_reachable(&oids, report_progress); QSORT(oids.list, oids.nr, commit_compare); - count_distinct = 1; for (i = 1; i < oids.nr; i++) { if (!oideq(&oids.list[i - 1], &oids.list[i])) |