summaryrefslogtreecommitdiff
path: root/shallow.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-19 05:28:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-21 05:07:21 (GMT)
commit9d2c97016fa09584337273ba6503e91e7c20d28e (patch)
tree7d730d3d1cdb6b11637d7c487a14da1c45c3a5c4 /shallow.c
parente2e5ac2303377c28e82b6044b06caebe4a1734c9 (diff)
downloadgit-9d2c97016fa09584337273ba6503e91e7c20d28e.zip
git-9d2c97016fa09584337273ba6503e91e7c20d28e.tar.gz
git-9d2c97016fa09584337273ba6503e91e7c20d28e.tar.bz2
commit.h: delete 'util' field in struct commit
If you have come this far, you probably have seen that this 'util' pointer is used for many different purposes. Some are not even contained in a command code, but buried deep in common code with no clue who will use it and how. The move to using commit-slab gives us a much better picture of how some piece of data is associated with a commit and what for. Since nobody uses 'util' pointer anymore, we can retire so that nobody will abuse it again. commit-slab will be the way forward for associating data to a commit. As a side benefit, this shrinks struct commit by 8 bytes (on 64-bit architecture) which should help reduce memory usage for reachability test a bit. This is also what commit-slab is invented for [1]. [1] 96c4f4a370 (commit: allow associating auxiliary info on-demand - 2013-04-09) Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shallow.c')
0 files changed, 0 insertions, 0 deletions