commit.h: rearrange 'index' to shrink struct commit
[gitweb.git] / commit.h
index 0fb8271665c6c98ccca803fbe002327bf38fcfb3..fd1cbe72634a66b683bdd543a6cdd5c74eb1fe07 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -9,6 +9,8 @@
 #include "string-list.h"
 #include "pretty.h"
 
+#define COMMIT_NOT_FROM_GRAPH 0xFFFFFFFF
+
 struct commit_list {
        struct commit *item;
        struct commit_list *next;
@@ -17,10 +19,11 @@ struct commit_list {
 struct commit {
        struct object object;
        void *util;
-       unsigned int index;
        timestamp_t date;
        struct commit_list *parents;
        struct tree *tree;
+       uint32_t graph_pos;
+       unsigned int index;
 };
 
 extern int save_commit_buffer;