Thread (17 messages) 17 messages, 4 authors, 2017-11-01

Re: [PATCH v2 3/4] Integrate hash algorithm support with repo setup

From: Stefan Beller <hidden>
Date: 2017-10-30 16:27:34

On Sat, Oct 28, 2017 at 11:12 AM, brian m. carlson
[off-list ref] wrote:
Include repository.h in cache.h since we now need to have access to
these struct and variable definitions.
Let's see how that works out. I remember having include issues
in the repository struct series.
quoted hunk ↗ jump to hunk
 };
 extern const struct git_hash_algo hash_algos[GIT_HASH_NALGOS];

+#define current_hash the_repository->hash_algo
+
 #if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT)
 #define DTYPE(de)      ((de)->d_type)
 #else
@@ -920,6 +923,7 @@ struct repository_format {
        int version;
        int precious_objects;
        int is_bare;
+       int hash_algo;
I wonder if this (as well as the #defines in patch 2),
ought to be an enum { unknown-hash=0, sha1=1}.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help