gitweb: Add git_get_{following,preceding}_references functions
commit470b96d4837c5b019f15c8a5b013501724236de4
authorJakub Narebski <jnareb@gmail.com>
Thu, 24 Aug 2006 17:37:04 +0000 (24 19:37 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 26 Aug 2006 02:39:34 +0000 (25 19:39 -0700)
treeb04731bbcafd7eb13a17b458146de0015528fadd
parent157e43b4b0dd5a08eb7a6838192ac58bca62fa5b
gitweb: Add git_get_{following,preceding}_references functions

Adds git_get_following_references function, based on code which was
used in git_commitdiff_plain to generate X-Git-Tag: header,
and companion git_get_preceding_references function.

Both functions return array of all references of given type (as
returned by git_get_references) following/preceding given commit in
array (list) context, and last following/first preceding ref in scalar
context.

Stripping ref (list of refs) of "$type/" (e.g. "tags/") is left to
caller.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl