summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-30 05:04:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-30 05:04:08 (GMT)
commita4eae17c2c3f898d2838000c5f1b7c7d66c62316 (patch)
tree3729eac9d5cbc2ca3fe0ded926283bfdbd832929 /commit.h
parent26597cb0cceb82b315c543f1cc02bbb72c537eaa (diff)
parent25f859fdf49c37780685d07ebda81b7716fb5879 (diff)
downloadgit-a4eae17c2c3f898d2838000c5f1b7c7d66c62316.zip
git-a4eae17c2c3f898d2838000c5f1b7c7d66c62316.tar.gz
git-a4eae17c2c3f898d2838000c5f1b7c7d66c62316.tar.bz2
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 10e34e1..c3af512 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;