{"thread":{"id":"17302","subject":"git-describe hash length","startedAt":"2009-01-22T11:26:06Z","lastAt":"2009-01-23T09:36:26Z","messageCount":4,"participants":["Martin Pirker","Tomas Carnecky","Boyd Stephen Smith Jr.","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"101522","messageId":"497857CE.3060101@iaik.tugraz.at","threadId":"17302","inReplyTo":null,"subject":"git-describe hash length","fromName":"Martin Pirker","fromEmail":"martin.pirker@iaik.tugraz.at","sentAt":"2009-01-22T11:26:06Z","receivedAt":"2009-01-22T11:26:06Z","isPatch":false,"sender":{"key":"martin.pirker@iaik.tugraz.at","avatar":null},"body":"Hi!\n\n\njohn@doe:/workspace$ git version\ngit version 1.6.1\njohn@doe:/workspace$ git describe\nfatal: cannot describe '7aee61cc635a923e70b74091486742481ee0928b'\njohn@doe:/workspace$ git describe --always\n7aee61c\njohn@doe:/workspace$ git describe --always --abbrev=8\n7aee61cc\n\n\nman git-describe:\n\n  --abbrev=<n>\n      Instead of using the default 8 hexadecimal digits as the\n      abbreviated object name, use <n> digits.\n\n\n\nThere is one character missing from default or what am I missing?\n\nThanks,\nMartin\n"},{"id":"101524","messageId":"497867BE.8070509@dbservice.com","threadId":"17302","inReplyTo":"497857CE.3060101@iaik.tugraz.at","subject":"Re: git-describe hash length","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2009-01-22T12:34:06Z","receivedAt":"2009-01-22T12:34:06Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"On 01/22/2009 12:26 PM, Martin Pirker wrote:\n> Hi!\n>\n>\n> john@doe:/workspace$ git version\n> git version 1.6.1\n> john@doe:/workspace$ git describe\n> fatal: cannot describe '7aee61cc635a923e70b74091486742481ee0928b'\n> john@doe:/workspace$ git describe --always\n> 7aee61c\n> john@doe:/workspace$ git describe --always --abbrev=8\n> 7aee61cc\n>\n>\n> man git-describe:\n>\n>    --abbrev=<n>\n>        Instead of using the default 8 hexadecimal digits as the\n>        abbreviated object name, use<n>  digits.\n>\n>\n>\n> There is one character missing from default or what am I missing?\n\nThe man page is wrong:\n\ncache.h:#define DEFAULT_ABBREV 7\nbuiltin-describe.c:static int abbrev = DEFAULT_ABBREV;\n\ntom\n"},{"id":"101558","messageId":"200901221226.25342.bss@iguanasuicide.net","threadId":"17302","inReplyTo":"497867BE.8070509@dbservice.com","subject":"[PATCH] Fix Documentation for git-describe","fromName":"Boyd Stephen Smith Jr.","fromEmail":"bss@iguanasuicide.net","sentAt":"2009-01-22T18:26:25Z","receivedAt":"2009-01-22T18:26:25Z","isPatch":true,"sender":{"key":"bss@iguanasuicide.net","avatar":"https://gravatar.com/avatar/84b95eeff194b816c1568b1339e63e4b229825298664a9037b9f1ec713ead1e3?d=mp&s=160"},"body":"The documentation for git-describe says the default abbreviation is 8\nhexadecimal digits while cache.c clearly shows DEFAULT_ABBREV set to 7.\nThis patch corrects the documentation.\n\nSigned-off-by: Boyd Stephen Smith Jr <bss@iguanasuicide.net>\n---\nOn Thursday 2009 January 22 06:34:06 Tomas Carnecky wrote:\n>On 01/22/2009 12:26 PM, Martin Pirker wrote:\n>> john@doe:/workspace$ git version\n>> git version 1.6.1\n>> john@doe:/workspace$ git describe\n>> fatal: cannot describe '7aee61cc635a923e70b74091486742481ee0928b'\n>> john@doe:/workspace$ git describe --always\n>> 7aee61c\n>> john@doe:/workspace$ git describe --always --abbrev=8\n>> 7aee61cc\n>>\n>> man git-describe:\n>>    --abbrev=<n>\n>>        Instead of using the default 8 hexadecimal digits as the\n>>        abbreviated object name, use<n>  digits.\n>>\n>> There is one character missing from default or what am I missing?\n>\n>The man page is wrong:\n>\n>cache.h:#define DEFAULT_ABBREV 7\n>builtin-describe.c:static int abbrev = DEFAULT_ABBREV;\n\nLet's fix it then!  This is a patch against maint.\n\nIs there any way to include values from the source as text in the ascidoc\nother than copy-and-paste?  It would be nice if we don't have to do this fix\nagain in the future.\n\nI did a quick scan of 'git grep 8 -- Documentation' and didn't see\nanywhere else this needed fixing.\n\n Documentation/git-describe.txt |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-describe.txt b/Documentation/git-describe.txt\nindex 3d79f05..a30c5ac 100644\n--- a/Documentation/git-describe.txt\n+++ b/Documentation/git-describe.txt\n@@ -43,7 +43,7 @@ OPTIONS\n \tAutomatically implies --tags.\n \n --abbrev=<n>::\n-\tInstead of using the default 8 hexadecimal digits as the\n+\tInstead of using the default 7 hexadecimal digits as the\n \tabbreviated object name, use <n> digits.\n \n --candidates=<n>::\n-- \n1.6.0.2\n-- \nBoyd Stephen Smith Jr.                     ,= ,-_-. =. \nbss@iguanasuicide.net                     ((_/)o o(\\_))\nICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' \nhttp://iguanasuicide.net/                      \\_/     \n"},{"id":"101644","messageId":"7v1vuuz7mt.fsf@gitster.siamese.dyndns.org","threadId":"17302","inReplyTo":"200901221226.25342.bss@iguanasuicide.net","subject":"Re: [PATCH] Fix Documentation for git-describe","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-01-23T09:36:26Z","receivedAt":"2009-01-23T09:36:26Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}