summaryrefslogtreecommitdiff
path: root/fetch.h
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-05-19 07:29:26 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-19 22:02:52 (GMT)
commitd0740d92beb019a7b02678e5acea79c0ff67e3ee (patch)
tree0e3e69c86d311f788dc0010ffbc369e4fa6a53d1 /fetch.h
parent732232a123e1e61e38babb1c572722bb8a189ba3 (diff)
downloadgit-d0740d92beb019a7b02678e5acea79c0ff67e3ee.zip
git-d0740d92beb019a7b02678e5acea79c0ff67e3ee.tar.gz
git-d0740d92beb019a7b02678e5acea79c0ff67e3ee.tar.bz2
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>
Diffstat (limited to 'fetch.h')
-rw-r--r--fetch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fetch.h b/fetch.h
index 9837a3d..0011548 100644
--- a/fetch.h
+++ b/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;