]> git.cameronkatri.com Git - cgit.git/commit
ui-refs.c: Refactor print_tag()
authorLukas Fleischer <cgit@cryptocrack.de>
Sat, 6 Apr 2013 21:39:08 +0000 (23:39 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 8 Apr 2013 13:45:34 +0000 (15:45 +0200)
commit4b4a62d507adc61e20e75e2748301ef307a6c95f
tree36846dbdab0e714db54d9f6949ee0a605046b87c
parentcaca860ba79fe9f6bc387f64ddb57ac0db1fac33
ui-refs.c: Refactor print_tag()

The code snippets for OBJ_TAG and other object types are almost
equivalent. Merge them and use a couple of inline if conditions to
select proper fields.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
ui-refs.c