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>
This commit is contained in:
Lars Hjemli
2006-11-30 03:16:56 +01:00
committed by Junio C Hamano
parent 16c2bfbb44
commit 678d0f4cbf
3 changed files with 10 additions and 10 deletions

2
refs.h
View File

@ -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 */