Log ref updates made by fetch.
If a ref is changed by http-fetch, local-fetch or ssh-fetch record the change and the remote URL/name in the log for the ref. This requires loading the config file to check logAllRefUpdates. Also fixed a bug in the ref lock generation; the log file name was not being produced right due to a bad prefix length. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
732232a123
commit
d0740d92be
3
fetch.h
3
fetch.h
@ -25,6 +25,9 @@ extern int fetch_ref(char *ref, unsigned char *sha1);
|
||||
/* If set, the ref filename to write the target value to. */
|
||||
extern const char *write_ref;
|
||||
|
||||
/* If set additional text will appear in the ref log. */
|
||||
extern const char *write_ref_log_details;
|
||||
|
||||
/* If set, the hash that the current value of write_ref must be. */
|
||||
extern const unsigned char *current_ref;
|
||||
|
||||
|
Reference in New Issue
Block a user