{"thread":{"id":"21318","subject":"[PATCH] document delta attribute","startedAt":"2009-10-21T23:20:59Z","lastAt":"2009-10-21T23:20:59Z","messageCount":1,"participants":["Joey Hess"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"125666","messageId":"20091021232059.GA17412@gnu.kitenet.net","threadId":"21318","inReplyTo":null,"subject":"[PATCH] document delta attribute","fromName":"Joey Hess","fromEmail":"joey@kitenet.net","sentAt":"2009-10-21T23:20:59Z","receivedAt":"2009-10-21T23:20:59Z","isPatch":true,"sender":{"key":"joey@kitenet.net","avatar":"https://avatars.githubusercontent.com/u/16392?v=4"},"body":"I always wanted a way to turn off delta compression. Turns out git had one,\nbut it wasn't documented. Added documentation based on\nthe commit message of a74db82e15cd8a2c53a4a83e9a36dc7bf7a4c750.\n\nSkipped the .jpg example though because I don't want to over-encourage use\nof the attribute. (Also because jpeg file changes might delta-compress\nwell, if only metadata is changed.)\n\nSigned-off-by: Joey Hess <joey@kitenet.net>\n---\n Documentation/gitattributes.txt |   12 ++++++++++++\n 1 files changed, 12 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt\nindex 1195e83..e3e3d2c 100644\n--- a/Documentation/gitattributes.txt\n+++ b/Documentation/gitattributes.txt\n@@ -577,6 +577,18 @@ If this attribute is not set or has an invalid value, the value of the\n (See linkgit:git-config[1]).\n \n \n+Packing objects\n+~~~~~~~~~~~~~~~\n+\n+`delta`\n+^^^^^^^\n+\n+This attribute controls whether linkgit:git-pack-objects[1] will try\n+to delta compress files. The attribute is set by default. You may benefit\n+from unsetting it for certain large binary files for which attempting delta\n+compression will only use CPU cycles and memory.\n+\n+\n USING ATTRIBUTE MACROS\n ----------------------\n \n-- \n1.6.4.3\n"}]}