summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-04-27 14:59:59 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-04-29 11:50:39 +0200
commit8381238e005be4a0e53d09a46a1a40e7d3405416 (patch)
tree6cfbf93d33010dfff43203af32728ffc36bd8e9e /include/git2/common.h
parent68a146c1ae580f0828dd193a749aac4063aa4500 (diff)
downloadlibgit2-8381238e005be4a0e53d09a46a1a40e7d3405416.tar.gz
commit: support a root commits
A root commit is a commit whose branch (usually what HEAD points to) doesn't exist (yet). This situation can happen when the commit is the first after 1) a repository is initialized or 2) a orphan checkout has been performed. Take this opportunity to remove the symbolic link check, as git_reference_resolve works on OID refs as well. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2/common.h')
0 files changed, 0 insertions, 0 deletions