summaryrefslogtreecommitdiff
path: root/src/refs.h
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-08-25 01:47:39 +0000
committerEtienne Samson <samson.etienne@gmail.com>2018-10-19 20:39:17 +0200
commit6e9fb040d9ea521f855257736369f42463cc45e8 (patch)
tree1e794e315f0242ae8560e0093cbf6ab677baf80f /src/refs.h
parent5c0c8fdd39112eb28402313105b3cc047b2400c0 (diff)
downloadlibgit2-6e9fb040d9ea521f855257736369f42463cc45e8.tar.gz
merge: make analysis possible against a non-HEAD reference
This moves the current merge analysis code into a more generic version that can work against any reference. Also change the tests to check returned analysis values exactly.
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/refs.h b/src/refs.h
index 84daf8b53..f4f934222 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -136,4 +136,6 @@ int git_reference__update_for_commit(
const git_oid *id,
const char *operation);
+int git_reference__is_unborn_head(bool *unborn, const git_reference *ref, git_repository *repo);
+
#endif