{"thread":{"id":"44402","subject":"[git rebase -i] show time and author besides commit hash and message?","startedAt":"2016-10-30T17:03:46Z","lastAt":"2016-10-31T15:58:10Z","messageCount":5,"participants":["ryenus","Alexei Lozovsky","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"305183","messageId":"CAKkAvazX1gDzwhQLTbRvxc84sjz72ONy2-P7qWijQUnQqJ+K8g@mail.gmail.com","threadId":"44402","inReplyTo":null,"subject":"[git rebase -i] show time and author besides commit hash and message?","fromName":"ryenus","fromEmail":"ryenus@gmail.com","sentAt":"2016-10-30T17:03:10Z","receivedAt":"2016-10-30T17:03:46Z","isPatch":false,"sender":{"key":"ryenus@gmail.com","avatar":"https://avatars.githubusercontent.com/u/610161?v=4"},"body":"It would help especially when the commit message was written badly.\n\nOr it might be possible to customize just like \"git log --format\"?\n\nThanks\n"},{"id":"305184","messageId":"CALhvvbYJ8G12Lbe2FgP8PWKZ-LABcw2M-M-zWPkT12UUqq1vaw@mail.gmail.com","threadId":"44402","inReplyTo":"CAKkAvazX1gDzwhQLTbRvxc84sjz72ONy2-P7qWijQUnQqJ+K8g@mail.gmail.com","subject":"Re: [git rebase -i] show time and author besides commit hash and message?","fromName":"Alexei Lozovsky","fromEmail":"a.lozovsky@gmail.com","sentAt":"2016-10-30T17:21:41Z","receivedAt":"2016-10-30T17:22:18Z","isPatch":false,"sender":{"key":"a.lozovsky@gmail.com","avatar":"https://gravatar.com/avatar/8bb8ff5ec366dd64bd8e08f768082934513da367ae047bcb0039292e4ed6bda5?d=mp&s=160"},"body":"> It would help especially when the commit message was written badly.\n>\n> Or it might be possible to customize just like \"git log --format\"?\n\nIt is possible to change the format globally via config option\nrebase.instructionFormat:\n\n    $ git config rebase.instructionFormat \"%an (%ad): %s\"\n\nThe format is the same as for 'git log'. This one outputs author\nname, date, and the first line of commit message.\n\nThis option is supported since Git 2.6.\n\nOr are you interested in a command-line option that can change\nthe format on per-invocation basis? I think there isn't one.\nIt can be interesting to add it, but I don't think it has much\nutility...\n"},{"id":"305186","messageId":"20161030184633.6lqdeefznpezhljd@sigill.intra.peff.net","threadId":"44402","inReplyTo":"CALhvvbYJ8G12Lbe2FgP8PWKZ-LABcw2M-M-zWPkT12UUqq1vaw@mail.gmail.com","subject":"[PATCH] doc: fix missing \"::\" in config list","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-10-30T18:46:33Z","receivedAt":"2016-10-30T18:46:49Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sun, Oct 30, 2016 at 07:21:41PM +0200, Alexei Lozovsky wrote:\n\n> > It would help especially when the commit message was written badly.\n> >\n> > Or it might be possible to customize just like \"git log --format\"?\n> \n> It is possible to change the format globally via config option\n> rebase.instructionFormat:\n> \n>     $ git config rebase.instructionFormat \"%an (%ad): %s\"\n\nI had totally forgotten we added this option. When I went to look at its\ndocumentation, I found the formatting a bit funny. This should fix it.\n\n-- >8 --\nSubject: [PATCH] doc: fix missing \"::\" in config list\n\nThe rebase.instructionFormat option is missing its \"::\" to\ntell AsciiDoc that it's a list entry. As a result, the\noption name gets lumped into the description in one big\nparagraph.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\n Documentation/config.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/config.txt b/Documentation/config.txt\nindex 27069ac03..a0ab66aae 100644\n--- a/Documentation/config.txt\n+++ b/Documentation/config.txt\n@@ -2450,7 +2450,7 @@ rebase.missingCommitsCheck::\n \tcommand in the todo-list.\n \tDefaults to \"ignore\".\n \n-rebase.instructionFormat\n+rebase.instructionFormat::\n \tA format string, as specified in linkgit:git-log[1], to be used for\n \tthe instruction list during an interactive rebase.  The format will automatically\n \thave the long commit hash prepended to the format.\n-- \n2.10.2.870.g7471999\n\n"},{"id":"305197","messageId":"CAKkAvay4YuRuGhub6W308+DmrZtrO3+NWu8NvfB--Mb9Z59Xzw@mail.gmail.com","threadId":"44402","inReplyTo":"CALhvvbYJ8G12Lbe2FgP8PWKZ-LABcw2M-M-zWPkT12UUqq1vaw@mail.gmail.com","subject":"Re: [git rebase -i] show time and author besides commit hash and message?","fromName":"ryenus","fromEmail":"ryenus@gmail.com","sentAt":"2016-10-31T15:27:33Z","receivedAt":"2016-10-31T15:28:01Z","isPatch":false,"sender":{"key":"ryenus@gmail.com","avatar":"https://avatars.githubusercontent.com/u/610161?v=4"},"body":"> It is possible to change the format globally via config option\n> rebase.instructionFormat:\n>\n>     $ git config rebase.instructionFormat \"%an (%ad): %s\"\n>\n> The format is the same as for 'git log'. This one outputs author\n> name, date, and the first line of commit message.\n\nThanks for the prompt response!\nI tried immediately, it works just as you have pointed out.\n\nJust it seems coloring is not supported? probably because\nwe're inside an editor?\n\n> This option is supported since Git 2.6.\n\nI missed it, what about including a note about this option as\npart of the comment in git rebase -i? since that's the place where\npeople would most likely think about it?\n\n> Or are you interested in a command-line option that can change\n> the format on per-invocation basis? I think there isn't one.\n> It can be interesting to add it, but I don't think it has much\n> utility...\n\nNot much, for git log I'd rather setup an alias \"git la\", than having to\nremember various fields, colors, padding options to have a nice output.\n"},{"id":"305198","messageId":"20161031155709.nimnuucq75kn6mau@sigill.intra.peff.net","threadId":"44402","inReplyTo":"CAKkAvay4YuRuGhub6W308+DmrZtrO3+NWu8NvfB--Mb9Z59Xzw@mail.gmail.com","subject":"Re: [git rebase -i] show time and author besides commit hash and message?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-10-31T15:57:09Z","receivedAt":"2016-10-31T15:58:10Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Oct 31, 2016 at 11:27:33PM +0800, ryenus wrote:\n\n> > It is possible to change the format globally via config option\n> > rebase.instructionFormat:\n> >\n> >     $ git config rebase.instructionFormat \"%an (%ad): %s\"\n> >\n> > The format is the same as for 'git log'. This one outputs author\n> > name, date, and the first line of commit message.\n> \n> Thanks for the prompt response!\n> I tried immediately, it works just as you have pointed out.\n> \n> Just it seems coloring is not supported? probably because\n> we're inside an editor?\n\nYes. If git outputs its own ANSI codes there, they generally look bad in\nan editor (interpreted as raw bytes, not as coloring). Any existing\ncoloring you see is likely due to syntax highlighting done by your\neditor. You can extend that to match your desired format, but exactly\nhow would depend on which editor you're using.\n\n-Peff\n"}]}