libgit2/libgit2 — pull request #1245 by nulltoken (2013-01-14 19:07:05+00:00)
Title: Introduce git_branch_tracking_name()

This is an attempt to fix libgit2/libgit2sharp#276.

The current API `git_branch_tracking` only accepts concrete `git_reference`s which can't be produced if the reference doesn't exist yet.

This should help retrieving remote and local tracking branches from orphaned references.