Re: [PATCH v3] diff: support anchoring line(s)

2017-12-04 Thread Stefan Beller
On Thu, Nov 30, 2017 at 3:26 PM, Jonathan Tan wrote: > On Thu, 30 Nov 2017 01:36:37 +0100 (CET) > Johannes Schindelin wrote: > >> Hi Jonathan, >> >> On Tue, 28 Nov 2017, Jonathan Tan wrote: >> >> > @@ -4607,7 +4627,14 @@ int

Re: [PATCH v3] diff: support anchoring line(s)

2017-11-30 Thread Jonathan Tan
On Thu, 30 Nov 2017 01:36:37 +0100 (CET) Johannes Schindelin wrote: > Hi Jonathan, > > On Tue, 28 Nov 2017, Jonathan Tan wrote: > > > @@ -4607,7 +4627,14 @@ int diff_opt_parse(struct diff_options *options, > > DIFF_XDL_CLR(options, NEED_MINIMAL); > >

Re: [PATCH v3] diff: support anchoring line(s)

2017-11-29 Thread Johannes Schindelin
Hi Jonathan, On Tue, 28 Nov 2017, Jonathan Tan wrote: > @@ -4607,7 +4627,14 @@ int diff_opt_parse(struct diff_options *options, > DIFF_XDL_CLR(options, NEED_MINIMAL); > options->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK; > options->xdl_opts |= value; > +

[PATCH v3] diff: support anchoring line(s)

2017-11-28 Thread Jonathan Tan
Teach diff a new algorithm, one that attempts to prevent user-specified lines from appearing as a deletion or addition in the end result. The end user can use this by specifying "--anchored=" one or more times when using Git commands like "diff" and "show". Signed-off-by: Jonathan Tan