]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.c
cache.h: remove dependence on hex.h; make other files include it explicitly
[thirdparty/git.git] / commit-graph.c
index a7d8755932884cfcb05fad4c539c3b8be8322897..5e6098ff356b937f7790e2c8dfe5634ebc5f56be 100644 (file)
@@ -1,5 +1,6 @@
 #include "git-compat-util.h"
 #include "config.h"
+#include "hex.h"
 #include "lockfile.h"
 #include "pack.h"
 #include "packfile.h"
@@ -1594,8 +1595,7 @@ static void compute_bloom_filters(struct write_commit_graph_context *ctx)
                        _("Computing commit changed paths Bloom filters"),
                        ctx->commits.nr);
 
-       ALLOC_ARRAY(sorted_commits, ctx->commits.nr);
-       COPY_ARRAY(sorted_commits, ctx->commits.list, ctx->commits.nr);
+       DUP_ARRAY(sorted_commits, ctx->commits.list, ctx->commits.nr);
 
        if (ctx->order_by_pack)
                QSORT(sorted_commits, ctx->commits.nr, commit_pos_cmp);