aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-13 11:07:51 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-13 11:07:51 -0800
commitabcb49cb56fc6fa047a8838cd47fbdfa48791798 (patch)
tree5381eab9fd6fc651250d2db8635e2f557675ff7c /refs.h
parent490e092defd01ff645457cde4e96bc0d0d534ccd (diff)
parent678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c (diff)
downloadgit-abcb49cb56fc6fa047a8838cd47fbdfa48791798.tar.gz
git-abcb49cb56fc6fa047a8838cd47fbdfa48791798.tar.xz
Merge branch 'lh/branch-rename'
* lh/branch-rename: git-branch: let caller specify logmsg rename_ref: use lstat(2) when testing for symlink git-branch: add options and tests for branch renaming Conflicts: builtin-branch.c
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index cd1e1d620..51aab1e6b 100644
--- a/refs.h
+++ b/refs.h
@@ -47,4 +47,7 @@ extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned
/** Returns 0 if target has the right format for a ref. **/
extern int check_ref_format(const char *target);
+/** rename ref, return 0 on success **/
+extern int rename_ref(const char *oldref, const char *newref, const char *logmsg);
+
#endif /* REFS_H */