vendor/libgit2/src/refs.h in rugged-0.27.9 vs vendor/libgit2/src/refs.h in rugged-0.27.10

- old
+ new

@@ -53,20 +53,20 @@ #define GIT_SEQUENCER_TODO_FILE GIT_SEQUENCER_DIR "todo" #define GIT_STASH_FILE "stash" #define GIT_REFS_STASH_FILE GIT_REFS_DIR GIT_STASH_FILE -#define GIT_REF_FORMAT__PRECOMPOSE_UNICODE (1u << 16) -#define GIT_REF_FORMAT__VALIDATION_DISABLE (1u << 15) +#define GIT_REFERENCE_FORMAT__PRECOMPOSE_UNICODE (1u << 16) +#define GIT_REFERENCE_FORMAT__VALIDATION_DISABLE (1u << 15) #define GIT_REFNAME_MAX 1024 typedef char git_refname_t[GIT_REFNAME_MAX]; struct git_reference { git_refdb *db; - git_ref_t type; + git_reference_t type; union { git_oid oid; char *symbolic; } target; @@ -133,7 +133,9 @@ git_repository *repo, git_reference *ref, const char *ref_name, const git_oid *id, const char *operation); + +int git_reference__is_unborn_head(bool *unborn, const git_reference *ref, git_repository *repo); #endif