gitk: Speed up the reading of references
commit62d3ea65a7f7f01b72db7f318029be0b0ede5a28
authorPaul Mackerras <paulus@samba.org>
Mon, 11 Sep 2006 00:36:53 +0000 (11 10:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 23 Jun 2007 10:57:55 +0000 (23 20:57 +1000)
tree0684dcfc889bd2c848bca464841dc84b4e57c53b
parent219ea3a99b9d4253815bcd71fd78eb00665acdbb
gitk: Speed up the reading of references

We were doing two execs for each tag - one to map the tag ID to a
commit ID and one to read the contents of the tag for later display.
This speeds up the process by not reading the contents of the tag
(instead it is read later if needed), and by using the -d flag to
git show-ref, which gives us refs/tags/foo^{} lines which give us
the commit ID.  Also this uses string operations instead of regexps.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk