aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-30 14:04:08 +0900
committerJunio C Hamano <gitster@pobox.com>2018-05-30 14:04:08 +0900
commita4eae17c2c3f898d2838000c5f1b7c7d66c62316 (patch)
tree3729eac9d5cbc2ca3fe0ded926283bfdbd832929 /commit.h
parentMerge branch 'ma/create-pseudoref-with-null-old-oid' (diff)
parentcommit.h: rearrange 'index' to shrink struct commit (diff)
downloadgit-a4eae17c2c3f898d2838000c5f1b7c7d66c62316.tar.gz
git-a4eae17c2c3f898d2838000c5f1b7c7d66c62316.zip
Merge branch 'nd/pack-struct-commit'
Memory optimization. * nd/pack-struct-commit: commit.h: rearrange 'index' to shrink struct commit
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 10e34e1a18..c3af512f8b 100644
--- a/commit.h
+++ b/commit.h
@@ -19,7 +19,6 @@ struct commit_list {
struct commit {
struct object object;
void *util;
- unsigned int index;
timestamp_t date;
struct commit_list *parents;
@@ -30,6 +29,7 @@ struct commit {
*/
struct tree *maybe_tree;
uint32_t graph_pos;
+ unsigned int index;
};
extern int save_commit_buffer;