{"thread":{"id":"23972","subject":"[PATCH] Documentation/pretty-{formats,options}: better reference for \"format:<string>\"","startedAt":"2010-06-01T17:54:46Z","lastAt":"2010-06-02T04:40:16Z","messageCount":3,"participants":["Nazri Ramliy","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"142717","messageId":"1275414886-942-1-git-send-email-ayiehere@gmail.com","threadId":"23972","inReplyTo":null,"subject":"[PATCH] Documentation/pretty-{formats,options}: better reference for \"format:<string>\"","fromName":"Nazri Ramliy","fromEmail":"ayiehere@gmail.com","sentAt":"2010-06-01T17:54:46Z","receivedAt":"2010-06-01T17:54:46Z","isPatch":true,"sender":{"key":"ayiehere@gmail.com","avatar":"https://avatars.githubusercontent.com/u/164756?v=4"},"body":"In \"git help log\" (and friends) it's not easy to find the possible\nplaceholder for <string> for the \"--pretty=format:<string>\" option\nto git log.\n\nThis patch makes the placholder easier to find by adding a reference\nto the \"PRETTY FORMATS\" section and repeating the \"format:<string>\"\nphrase.\n\nSigned-off-by: Nazri Ramliy <ayiehere@gmail.com>\n---\n Documentation/pretty-formats.txt |    4 ++--\n Documentation/pretty-options.txt |    5 +++--\n 2 files changed, 5 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt\nindex 1686a54..c85a52c 100644\n--- a/Documentation/pretty-formats.txt\n+++ b/Documentation/pretty-formats.txt\n@@ -76,9 +76,9 @@ displayed in full, regardless of whether --abbrev or\n true parent commits, without taking grafts nor history\n simplification into account.\n \n-* 'format:'\n+* 'format:<string>'\n +\n-The 'format:' format allows you to specify which information\n+The 'format:<string>' format allows you to specify which information\n you want to show. It works a little bit like printf format,\n with the notable exception that you get a newline with '%n'\n instead of '\\n'.\ndiff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt\nindex af6d2b9..d78e121 100644\n--- a/Documentation/pretty-options.txt\n+++ b/Documentation/pretty-options.txt\n@@ -3,8 +3,9 @@\n \n \tPretty-print the contents of the commit logs in a given format,\n \twhere '<format>' can be one of 'oneline', 'short', 'medium',\n-\t'full', 'fuller', 'email', 'raw' and 'format:<string>'.\n-\tWhen omitted, the format defaults to 'medium'.\n+\t'full', 'fuller', 'email', 'raw' and 'format:<string>'.  See\n+\tthe \"PRETTY FORMATS\" section for some additional details for each\n+\tformat.  When omitted, the format defaults to 'medium'.\n +\n Note: you can specify the default pretty format in the repository\n configuration (see linkgit:git-config[1]).\n-- \n1.7.1.226.g770c5\n"},{"id":"142718","messageId":"AANLkTinPczm1_UWtjDyYzP9QSLBhXX45bVgm-UBgULgi@mail.gmail.com","threadId":"23972","inReplyTo":"1275414886-942-1-git-send-email-ayiehere@gmail.com","subject":"Re: [PATCH] Documentation/pretty-{formats,options}: better reference for \"format:<string>\"","fromName":"Nazri Ramliy","fromEmail":"ayiehere@gmail.com","sentAt":"2010-06-01T17:56:37Z","receivedAt":"2010-06-01T17:56:37Z","isPatch":true,"sender":{"key":"ayiehere@gmail.com","avatar":"https://avatars.githubusercontent.com/u/164756?v=4"},"body":"On Wed, Jun 2, 2010 at 1:54 AM, Nazri Ramliy <ayiehere@gmail.com> wrote:\n> This patch makes the placholder easier to find by adding a reference\n\nSorry for the typo.\n\ns/placholder/placeholder/\n\nnazri\n"},{"id":"142765","messageId":"7vljayoxn3.fsf@alter.siamese.dyndns.org","threadId":"23972","inReplyTo":"1275414886-942-1-git-send-email-ayiehere@gmail.com","subject":"Re: [PATCH] Documentation/pretty-{formats,options}: better reference for \"format:<string>\"","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-06-02T04:40:16Z","receivedAt":"2010-06-02T04:40:16Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nazri Ramliy <ayiehere@gmail.com> writes:\n\n> In \"git help log\" (and friends) it's not easy to find the possible\n> placeholder for <string> for the \"--pretty=format:<string>\" option\n> to git log.\n>\n> This patch makes the placeholder easier to find by adding a reference\n> to the \"PRETTY FORMATS\" section and repeating the \"format:<string>\"\n> phrase.\n>\n> Signed-off-by: Nazri Ramliy <ayiehere@gmail.com>\n\nMakes sense; thanks.\n\n>  Documentation/pretty-formats.txt |    4 ++--\n>  Documentation/pretty-options.txt |    5 +++--\n>  2 files changed, 5 insertions(+), 4 deletions(-)\n>\n> diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt\n> index 1686a54..c85a52c 100644\n> --- a/Documentation/pretty-formats.txt\n> +++ b/Documentation/pretty-formats.txt\n> @@ -76,9 +76,9 @@ displayed in full, regardless of whether --abbrev or\n>  true parent commits, without taking grafts nor history\n>  simplification into account.\n>  \n> -* 'format:'\n> +* 'format:<string>'\n>  +\n> -The 'format:' format allows you to specify which information\n> +The 'format:<string>' format allows you to specify which information\n>  you want to show. It works a little bit like printf format,\n>  with the notable exception that you get a newline with '%n'\n>  instead of '\\n'.\n> diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt\n> index af6d2b9..d78e121 100644\n> --- a/Documentation/pretty-options.txt\n> +++ b/Documentation/pretty-options.txt\n> @@ -3,8 +3,9 @@\n>  \n>  \tPretty-print the contents of the commit logs in a given format,\n>  \twhere '<format>' can be one of 'oneline', 'short', 'medium',\n> -\t'full', 'fuller', 'email', 'raw' and 'format:<string>'.\n> -\tWhen omitted, the format defaults to 'medium'.\n> +\t'full', 'fuller', 'email', 'raw' and 'format:<string>'.  See\n> +\tthe \"PRETTY FORMATS\" section for some additional details for each\n> +\tformat.  When omitted, the format defaults to 'medium'.\n>  +\n>  Note: you can specify the default pretty format in the repository\n>  configuration (see linkgit:git-config[1]).\n> -- \n> 1.7.1.226.g770c5\n"}]}