diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-13 11:07:51 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-13 11:07:51 -0800 |
commit | abcb49cb56fc6fa047a8838cd47fbdfa48791798 (patch) | |
tree | 5381eab9fd6fc651250d2db8635e2f557675ff7c /refs.h | |
parent | 490e092defd01ff645457cde4e96bc0d0d534ccd (diff) | |
parent | 678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c (diff) | |
download | git-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |