On Fri, Mar 27, 2015 at 10:16 AM, Bram Moolenaar <[email protected]> wrote:

>
> Manuel Ortega wrote:
>
> > I cloned the new "testing" repo from github.
> >
> > When I do "git log" and scroll through the results, I find that
> multi-line
> > log messages that look fine in the hg repo are a bit mangled in the
> github
> > repo.
> >
> > For example, a line starting with "Problem:" that has a description long
> > enough to continue on to the next line has bad indentation on the second
> > line. The commit messaget for atch 7.4.682 is a good example.
> >
> > I can't tell right now on my terminal, but I suspect github (or the
> google
> > code exporter) is inserting a tab where there should only be spaces (or
> > vice versa).
> >
> > I don't know whether anything can be done about that, but I thought I'd
> > raise the issue here.
>
> It looks like the "git log" command itself is to blame.  It inserts four
> spaces before every line, which means Tabs are misaligned.
> The 7.4.682 message looks OK on github, e.g. here:
> https://github.com/vim/vim/commit/6ac42ad71294c4ef6d74e99668e88911e76d818f
>
> Although in some other places the indent is removed completely.
>

Bram,

I think I have solved this.  `git log` takes (of course) lots of optional
flags to modify the output.

If you append the following to the .git/config file, then just doing `git
log` results in a log that corrects the indentation problem.

[format]
    pretty = %C(yellow)commit %H%Creset%nAuthor: %an%nDate:   %cd%n%n%B

When I do this, it matches what `git log` would show by default except that
it corrects the indentation problem by NOT inserting spaces, and making the
commit message body flush left.  This actually makes the output slightly
closer to the `hg log` output.

-Manny

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui