{"thread":{"id":"5588","subject":"[PATCH] git-repack(1): document --window and --depth","startedAt":"2006-09-17T11:02:59Z","lastAt":"2006-09-17T21:18:11Z","messageCount":2,"participants":["Jonas Fonseca","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"27069","messageId":"20060917110259.GB1497@diku.dk","threadId":"5588","inReplyTo":null,"subject":"[PATCH] git-repack(1): document --window and --depth","fromName":"Jonas Fonseca","fromEmail":"fonseca@diku.dk","sentAt":"2006-09-17T11:02:59Z","receivedAt":"2006-09-17T11:02:59Z","isPatch":true,"sender":{"key":"fonseca@diku.dk","avatar":"https://gravatar.com/avatar/f82f3ad698717c51873b020c750a92438c820a24056dc39fe4d07baa10a92264?d=mp&s=160"},"body":"Copy and pasted from git-pack-objects(1).\n\nSigned-off-by: Jonas Fonseca <fonseca@diku.dk>\n---\n Documentation/git-repack.txt |   12 +++++++++++-\n 1 files changed, 11 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt\nindex 9516227..49f7e0a 100644\n--- a/Documentation/git-repack.txt\n+++ b/Documentation/git-repack.txt\n@@ -9,7 +9,7 @@ objects into pack files.\n \n SYNOPSIS\n --------\n-'git-repack' [-a] [-d] [-f] [-l] [-n] [-q]\n+'git-repack' [-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]\n \n DESCRIPTION\n -----------\n@@ -56,6 +56,16 @@ OPTIONS\n         Do not update the server information with\n         `git update-server-info`.\n \n+--window=[N], --depth=[N]::\n+\tThese two options affects how the objects contained in the pack are\n+\tstored using delta compression. The objects are first internally\n+\tsorted by type, size and optionally names and compared against the\n+\tother objects within `--window` to see if using delta compression saves\n+\tspace. `--depth` limits the maximum delta depth; making it too deep\n+\taffects the performance on the unpacker side, because delta data needs\n+\tto be applied that many times to get to the necessary object.\n+\n+\n Author\n ------\n Written by Linus Torvalds <torvalds@osdl.org>\n-- \n1.4.2.g39f1\n\n-- \nJonas Fonseca\n"},{"id":"27089","messageId":"7vpsdu2nvw.fsf@assigned-by-dhcp.cox.net","threadId":"5588","inReplyTo":"20060917110259.GB1497@diku.dk","subject":"Re: [PATCH] git-repack(1): document --window and --depth","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-09-17T21:18:11Z","receivedAt":"2006-09-17T21:18:11Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jonas Fonseca <fonseca@diku.dk> writes:\n\n> Copy and pasted from git-pack-objects(1).\n\nI've been fighting the urge to do this myself for a few months\nnow ;-)\n\n$ git log -S--window -- git-repack.sh\ncommit ccb365047a1081455b767867f0887e7b4334f9d8\nAuthor: Linus Torvalds <torvalds@osdl.org>\nDate:   Wed Apr 19 10:05:12 2006 -0700\n\n    Allow \"git repack\" users to specify repacking window/depth\n    \n    .. but don't even bother documenting it. I don't think any normal person\n    is supposed to ever really care, but it simplifies testing when you want\n    to use the \"git repack\" wrapper rather than forcing you to use the core\n    programs (which already do support the window/depth arguments, of course).\n\nI will take your patch; I think it is useful to document this.\nThanks.\n"}]}