summaryrefslogtreecommitdiff
path: root/src/refs.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-01-15 16:50:31 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-03 14:40:50 +0100
commit4e498646b6e4f3e6303cd3a27682dcd10d97eaeb (patch)
treecab3a87c8845f549d9355a505df665a57ed4f4b3 /src/refs.h
parent412a3808889de65d8f94f22502aba10b9afbf755 (diff)
downloadlibgit2-4e498646b6e4f3e6303cd3a27682dcd10d97eaeb.tar.gz
repository: remove log message override for switching the active branch
We want to use the "checkout: moving from ..." message in order to let git know when a change of branch has happened. Make the convenience functions for this goal write this message.
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/refs.h b/src/refs.h
index ace93e33b..f78ea06b0 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -74,6 +74,7 @@ int git_reference__is_valid_name(const char *refname, unsigned int flags);
int git_reference__is_branch(const char *ref_name);
int git_reference__is_remote(const char *ref_name);
int git_reference__is_tag(const char *ref_name);
+const char *git_reference__shorthand(const char *name);
/**
* Lookup a reference by name and try to resolve to an OID.