{"thread":{"id":"1014","subject":"[PATCH 0/2] Finishing touches for pull \"-w ref\"","startedAt":"2005-06-23T23:18:56Z","lastAt":"2005-06-23T23:23:56Z","messageCount":3,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"5194","messageId":"7vfyv8fyqn.fsf@assigned-by-dhcp.cox.net","threadId":"1014","inReplyTo":null,"subject":"[PATCH 0/2] Finishing touches for pull \"-w ref\"","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-06-23T23:18:56Z","receivedAt":"2005-06-23T23:18:56Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I'll be sending these two patches to add finishing touches to\n\"-w ref\" support.\n\n    [PATCH 1/2] Add a bit of developer documentation to pull.h\n    [PATCH 2/2] http-pull: documentation updates.\n\n"},{"id":"5197","messageId":"7vy890ejz3.fsf@assigned-by-dhcp.cox.net","threadId":"1014","inReplyTo":"7vfyv8fyqn.fsf@assigned-by-dhcp.cox.net","subject":"[PATCH 1/2] Add a bit of developer documentation to pull.h","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-06-23T23:23:12Z","receivedAt":"2005-06-23T23:23:12Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Describe what to implement in fetch() and fetch_ref() for\npull backend writers a bit better.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n pull.h |   21 +++++++++++++++------\n 1 files changed, 15 insertions(+), 6 deletions(-)\n\ndiff --git a/pull.h b/pull.h\n--- a/pull.h\n+++ b/pull.h\n@@ -1,24 +1,33 @@\n #ifndef PULL_H\n #define PULL_H\n \n-/** To be provided by the particular implementation. **/\n+/*\n+ * Fetch object given SHA1 from the remote, and store it locally under\n+ * GIT_OBJECT_DIRECTORY.  Return 0 on success, -1 on failure.  To be\n+ * provided by the particular implementation.\n+ */\n extern int fetch(unsigned char *sha1);\n \n+/*\n+ * Fetch ref (relative to $GIT_DIR/refs) from the remote, and store\n+ * the 20-byte SHA1 in sha1.  Return 0 on success, -1 on failure.  To\n+ * be provided by the particular implementation.\n+ */\n extern int fetch_ref(char *ref, unsigned char *sha1);\n \n-/** If set, the ref filename to write the target value to. **/\n+/* If set, the ref filename to write the target value to. */\n extern const char *write_ref;\n \n-/** If set, the hash that the current value of write_ref must be. **/\n+/* If set, the hash that the current value of write_ref must be. */\n extern const unsigned char *current_ref;\n \n-/** Set to fetch the target tree. */\n+/* Set to fetch the target tree. */\n extern int get_tree;\n \n-/** Set to fetch the commit history. */\n+/* Set to fetch the commit history. */\n extern int get_history;\n \n-/** Set to fetch the trees in the commit history. **/\n+/* Set to fetch the trees in the commit history. */\n extern int get_all;\n \n /* Set to zero to skip the check for delta object base;\n------------\n\n"},{"id":"5198","messageId":"7vslz8ejxv.fsf@assigned-by-dhcp.cox.net","threadId":"1014","inReplyTo":"7vfyv8fyqn.fsf@assigned-by-dhcp.cox.net","subject":"[PATCH 2/2] http-pull: documentation updates.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-06-23T23:23:56Z","receivedAt":"2005-06-23T23:23:56Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Describe -w option.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n Documentation/git-http-pull.txt |    6 ++++--\n 1 files changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-http-pull.txt b/Documentation/git-http-pull.txt\n--- a/Documentation/git-http-pull.txt\n+++ b/Documentation/git-http-pull.txt\n@@ -9,7 +9,7 @@ git-http-pull - Downloads a remote GIT r\n \n SYNOPSIS\n --------\n-'git-http-pull' [-c] [-t] [-a] [-v] [-d] [--recover] commit-id url\n+'git-http-pull' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] commit-id url\n \n DESCRIPTION\n -----------\n@@ -30,7 +30,9 @@ Downloads a remote GIT repository via HT\n \tusual, to recover after earlier pull that was interrupted.\n -v::\n \tReport what is downloaded.\n-\n+-w::\n+        Writes the commit-id into the filename under $GIT_DIR/refs/ on\n+        the local end after the transfer is complete.\n \n Author\n ------\n------------\n\n"}]}