Thread (31 messages) flat view 31 messages, 2 authors, 2016-06-15

Re: [PATCH 01/16] Modify cache_header to prepare for other index formats

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:54:24

On Thu, Aug 2, 2012 at 6:01 PM, Thomas Gummerer [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/cache.h b/cache.h
index 6e9a243..d4028ef 100644
--- a/cache.h
+++ b/cache.h
@@ -99,9 +99,12 @@ unsigned long git_deflate_bound(git_zstream *, unsigned long);
  */

 #define CACHE_SIGNATURE 0x44495243     /* "DIRC" */
-struct cache_header {
+struct cache_version_header {
        unsigned int hdr_signature;
        unsigned int hdr_version;
+};
+
+struct cache_header_v2 {
        unsigned int hdr_entries;
 };
These structs should probably be moved to read-cache.c. We can
redeclare cache_version_header again in test-index-version.c (it does
not look too bad to me).
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help