summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2006-08-24 19:37:04 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-25 19:39:34 -0700
commit470b96d4837c5b019f15c8a5b013501724236de4 (patch)
treeb04731bbcafd7eb13a17b458146de0015528fadd /send-pack.c
parentgitweb: Streamify patch output in git_commitdiff (diff)
downloadtgif-470b96d4837c5b019f15c8a5b013501724236de4.tar.xz
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>
Diffstat (limited to 'send-pack.c')
0 files changed, 0 insertions, 0 deletions