On Wed, Aug 17, 2016 at 07:06:44PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > --- > doc/libav-merge.txt | 4 ++++ > tools/murge | 13 +++++++++++++ > 2 files changed, 17 insertions(+) > create mode 100755 tools/murge > > diff --git a/doc/libav-merge.txt b/doc/libav-merge.txt > index 60c953a..47c513a 100644 > --- a/doc/libav-merge.txt > +++ b/doc/libav-merge.txt > @@ -103,6 +103,10 @@ It has two modes: merge, and noop. The noop mode creates > a merge with no change > to the HEAD. You can pass a hash as extra argument to reference a > justification > (it is common that we already have the change done in FFmpeg). > > +Also see tools/murge, you can copy and paste a 3 way conflict into its stdin > +and it will display colored diffs. Any arguments to murge (like ones to > supress > +whitespace differences) are passed into colordiff. > + > TODO/FIXME/UNMERGED > =================== > > diff --git a/tools/murge b/tools/murge > new file mode 100755 > index 0000000..b4d88a1 > --- /dev/null > +++ b/tools/murge > @@ -0,0 +1,13 @@ > +#!/bin/sh > + > +grep -A99999 '<<<<<<<' | grep -B99999 '>>>>>>>' >murge.X
> +grep -A9999 '====' murge.X | egrep -v > '=======|<<<<<<<|>>>>>>>|\|\|\|\|\|\|\|' >murge.theirs btw, a few files contain '=====', see for instance libavcodec/h264dec.h you might want to add an extra ^ marker to make sure it matches the beginning of the line -- Clément B.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel