]> git.proxmox.com Git - libgit2.git/commit
New external API method: `git_reference_listcb`
authorVicent Marti <tanoku@gmail.com>
Fri, 25 Mar 2011 21:53:38 +0000 (23:53 +0200)
committerVicent Marti <tanoku@gmail.com>
Fri, 25 Mar 2011 21:53:38 +0000 (23:53 +0200)
commit09e8de0f38ed8f28c02e5a3fa987cbb74e98a671
treecc296d1beb507b92fc305a36ad1da8ec03e1535a
parent051d6915d70e6fec597fe1bfdee2870561f523d1
New external API method: `git_reference_listcb`

List all the references in the repository, calling a custom
callback for each one.

The listed references may be filtered by type, or using
a bitwise OR of several types. Use the magic value
`GIT_REF_LISTALL` to obtain all references, including
packed ones.

The `callback` function will be called for each of the references
in the repository, and will receive the name of the reference and
the `payload` value passed to this method.
include/git2/refs.h
src/refs.c