]> granicus.if.org Git - cgit/commit
cgit.c: use resolve_ref() to guess_defbranch()
authorLars Hjemli <hjemli@gmail.com>
Mon, 20 Jun 2011 22:52:51 +0000 (22:52 +0000)
committerLars Hjemli <hjemli@gmail.com>
Mon, 20 Jun 2011 23:23:57 +0000 (23:23 +0000)
commit8d7c2ec295423fe31d9113038f6717d7b64dbe57
tree78df2a78ae27a8f879ae71e92a47b0e284de7221
parente95c70d4ea997d1217d5c81cb3b640f3fa025df1
cgit.c: use resolve_ref() to guess_defbranch()

The resolve_ref() function handles reading of git- and filesystem
symbolic links (including proper whitespace trimming) and packed refs.
There's no point in reimplementing this function in cgit.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c