diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-08-24 19:37:04 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-25 19:39:34 -0700 |
commit | 470b96d4837c5b019f15c8a5b013501724236de4 (patch) | |
tree | b04731bbcafd7eb13a17b458146de0015528fadd /builtin-apply.c | |
parent | gitweb: Streamify patch output in git_commitdiff (diff) | |
download | tgif-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 'builtin-apply.c')
0 files changed, 0 insertions, 0 deletions