]> git.ipfire.org Git - thirdparty/git.git/commit
describe: Store commit_names in a hash table by commit SHA1
authorAnders Kaseorg <andersk@ksplice.com>
Thu, 9 Dec 2010 06:46:08 +0000 (01:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2010 19:20:26 +0000 (11:20 -0800)
commit3cfa4db3226ccef8845589029090d9398b207ba3
tree55965119e963088524d90bb0181bf92650e4a236
parent1e1ade1833db42a75f2792b4472748721f73c827
describe: Store commit_names in a hash table by commit SHA1

describe is currently forced to look up the commit at each tag in
order to store the struct commit_name pointers in struct commit.util.
For --exact-match queries, those lookups are wasteful.  In preparation
for removing them, put the commit_names into a hash table, indexed by
commit SHA1, that can be used to quickly check for exact matches.

Signed-off-by: Anders Kaseorg <andersk@ksplice.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/describe.c