commit.h: rearrange 'index' to shrink struct commit

On linux 64-bit architecture, pahole finds that there's a 4 bytes padding after 'index'. Moving it to the end reduces this struct's size from 72 to 64 bytes (because of another 4 bytes padding after graph_pos). On linux 32-bit, the struct size remains 52 bytes like before. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 11, 2018 at 19:20 UTC 25f859fdf49c37780685d07ebda81b7716fb5879
1 file changed +1 -1
commit.h
+1 -1
@@ -19,11 +19,11 @@ struct commit_list {
19 struct commit {
20 struct object object;
21 void *util;
22 - unsigned int index;
22 timestamp_t date;
23 struct commit_list *parents;
24 struct tree *tree;
25 uint32_t graph_pos;
26 + unsigned int index;
27 };
28
29 extern int save_commit_buffer;