On 2015-04-15 Wednesday at 18:41 +0200 Bram Moolenaar wrote:
> 
> Roland Eggner wrote:
> 
> [...]
> 
> > @Bram
> > ─────
> > As you prefer context over unified diff format:
> 
> Only for the patches I send out.  If someone sends me a patch any format
> will do.
> 
> > •  Are you aware of the possibility, that both git and mercurial can be 
> >    configured to output  _every_  diff output with an increased number of 
> 
> The reason for context diffs is for very old systems, which are unlikely
> to have git or mercurial.  It's become less and less important, but it's
> zero work to keep doing it this way.

“very old systems” … now I understand your intention, thank you.


> >    context lines, e.g. 10 lines instead of the usual 3?
> >    “git log -p -1 -U10”
> >    gitconfig:  “[diff] \n context = 10”
> >    “hg log -p --limit 1 --config diff.unified=10“
> >    hgrc:       “[diff] \n unified = 10“
> >    “git help diff” describes even more options to tune the amount of diff 
> >    context.
> > •  Are you aware of the patchutils package and the filterdiff command?
> >    It can give you context diff format with git and mercurial everywhere:
> >    just use “PAGER=/usr/bin/less” and properly include
> >    “filterdiff -v --format=context” in /usr/bin/lesspipe.
> > If you do not use already something equivalent, maybe using any of
> > this tips or both you like git and mercurial a bit more?

-- 
Roland Eggner

-- 
-- 
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.

Attachment: pgpm2fqQzUcid.pgp
Description: PGP signature

Raspunde prin e-mail lui