diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-11-30 03:16:56 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-05 23:50:57 -0800 |
commit | 678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c (patch) | |
tree | 0c7ce12b8e862fe96eb570d593509b3391d0fc0f /refs.h | |
parent | 16c2bfbb449a90db00a46984d7dd7f735caa1d56 (diff) | |
download | git-678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c.tar.gz |
git-branch: let caller specify logmsg
This changes the signature of rename_ref() in refs.[hc] to include a
logmessage for the reflogs.
Also, builtin-branch.c is modified to provide a proper logmessage + call
setup_ident() before any logmessages are written.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,6 +48,6 @@ extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned extern int check_ref_format(const char *target); /** rename ref, return 0 on success **/ -extern int rename_ref(const char *oldref, const char *newref); +extern int rename_ref(const char *oldref, const char *newref, const char *logmsg); #endif /* REFS_H */ |