]> git.proxmox.com Git - libgit2.git/commit
Add git_object_short_id API to get short id string
authorRussell Belfer <rb@github.com>
Wed, 5 Mar 2014 00:23:28 +0000 (16:23 -0800)
committerRussell Belfer <rb@github.com>
Wed, 5 Mar 2014 00:23:28 +0000 (16:23 -0800)
commit13f7ecd7b9c5244441eeaae798c8657d1818ea7f
treedad7f25d5b6a5c2c7cf41ea32e5914fe181b95ce
parentf5753999e4cac020c2dd3a4669fe9ba14df93cb5
Add git_object_short_id API to get short id string

This finds a short id string that will unambiguously select the
given object, starting with the core.abbrev length (usually 7)
and growing until it is no longer ambiguous.
include/git2/object.h
src/object.c
tests/object/shortid.c [new file with mode: 0644]