Merge branch 'rs/unify-is-branch'
* rs/unify-is-branch: refs.c: add a public is_branch function
This commit is contained in:
2
refs.h
2
refs.h
@ -128,6 +128,8 @@ extern int repack_without_refs(const char **refnames, int n,
|
||||
|
||||
extern int ref_exists(const char *);
|
||||
|
||||
extern int is_branch(const char *refname);
|
||||
|
||||
/*
|
||||
* If refname is a non-symbolic reference that refers to a tag object,
|
||||
* and the tag can be (recursively) dereferenced to a non-tag object,
|
||||
|
Reference in New Issue
Block a user