{"thread":{"id":"13054","subject":"[PATCH] Force the medium pretty format on calls to git log","startedAt":"2008-04-10T16:05:21Z","lastAt":"2008-04-11T05:41:35Z","messageCount":2,"participants":["Pedro Melo","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"74084","messageId":"1207843521-8492-1-git-send-email-melo@simplicidade.org","threadId":"13054","inReplyTo":null,"subject":"[PATCH] Force the medium pretty format on calls to git log","fromName":"Pedro Melo","fromEmail":"melo@simplicidade.org","sentAt":"2008-04-10T16:05:21Z","receivedAt":"2008-04-10T16:05:21Z","isPatch":true,"sender":{"key":"melo@simplicidade.org","avatar":"https://gravatar.com/avatar/13ddbb01e300285a93aa1e3739653a81f9b1d3438bd03a4ac36b88e4ffeeafc3?d=mp&s=160"},"body":"If a user as set a format.pretty in his config, git-svn rebase will fail with:\n\nUnable to determine upstream SVN information from working tree history\n\nWe need to force the medium format to obtain the needed information from the log.\n\nSigned-off-by: Pedro Melo <melo@simplicidade.org>\n---\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 81afb5c..b864b54 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -1120,7 +1120,7 @@ sub cmt_metadata {\n \n sub working_head_info {\n \tmy ($head, $refs) = @_;\n-\tmy @args = ('log', '--no-color', '--first-parent');\n+\tmy @args = ('log', '--no-color', '--first-parent', '--pretty=medium');\n \tmy ($fh, $ctx) = command_output_pipe(@args, $head);\n \tmy $hash;\n \tmy %max;\n-- \n1.5.5.23.g2a5f\n"},{"id":"74113","messageId":"7vy77lt0c0.fsf@gitster.siamese.dyndns.org","threadId":"13054","inReplyTo":"1207843521-8492-1-git-send-email-melo@simplicidade.org","subject":"Re: [PATCH] Force the medium pretty format on calls to git log","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-04-11T05:41:35Z","receivedAt":"2008-04-11T05:41:35Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Pedro Melo <melo@simplicidade.org> writes:\n\n> If a user as set a format.pretty in his config, git-svn rebase will fail\n> with:\n>\n> Unable to determine upstream SVN information from working tree history\n>\n> We need to force the medium format to obtain the needed information from\n> the log.\n>\n> Signed-off-by: Pedro Melo <melo@simplicidade.org>\n\nThanks.  This should have been part of 9225d7b (specify explicit\n\"--pretty=medium\" with `git log/show/whatchanged`, 2008-03-02) but\napparently we did not do a thorough job.\n"}]}