aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2006-11-30 03:16:56 +0100
committerJunio C Hamano <junkio@cox.net>2006-12-05 23:50:57 -0800
commit678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c (patch)
tree0c7ce12b8e862fe96eb570d593509b3391d0fc0f /refs.h
parent16c2bfbb449a90db00a46984d7dd7f735caa1d56 (diff)
downloadgit-678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c.tar.gz
git-678d0f4cbfa7a3b529c6e894f2977bef6a2d3e4c.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index ce73d5c7a..51aab1e6b 100644
--- a/refs.h
+++ b/refs.h
@@ -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 */