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.

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

-- 
"I've been teaching myself to play the piano for about 5 years and now write
most of my songs on it, mainly because I can never find any paper."
                Jeff Lynne, ELO's greatest hits

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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