]> Lady’s Gitweb - Gitweb/commit
gitweb: Add git_get_{following,preceding}_references functions
authorJakub Narebski <redacted>
Thu, 24 Aug 2006 17:37:04 +0000 (19:37 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commit1032f3f89ebd316cf47ec30a1dc9c7ecbde10d4bc85a2208b279dca461ab009b
treee13c1351b942fa0dff5b9b70306ae7236bd2afbc389b0132bf4bb1376349bc04
parentd20ce5dea8fd6d3fae28718c52f666f37a607187125b0a94d10d533310949fed
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.247481 seconds and 4 git commands to generate.