From: Martin Blais <blais@discreet.com>
To: Pavel Machek <pavel@ucw.cz>, Martin Blais <blais@IRO.UMontreal.CA>
Cc: linux-kernel@vger.kernel.org
Subject: Re: xxdiff as a visual diff tool (shameless plug)
Date: Fri, 22 Mar 2002 13:19:40 -0500 [thread overview]
Message-ID: <200203221824.NAA5677457@cuba.discreet.qc.ca> (raw)
In-Reply-To: <20020321061423.HIXG2746.tomts17-srv.bellnexxia.net@there> <20020322092712.GA233@elf.ucw.cz>
On Friday 22 March 2002 04:27, Pavel Machek wrote:
> Hi!
>
> > I actually wanted to implement it exactly like this in xxdiff,
> > and I think it may not be too hard. Something like
> >
> > "xxdiff --patch file1 < patch"
> >
> > and it would display as two files, and allow you to save merged
> > results. That was the plan (read more below).
> >
> > I wanted to spawn a patch command on it and recuperate the
> > output and then run diff and display that, so one could use and
> > alternate patch program as well, and I would reuse patch's
> > heuristics automatically (e.g. i don't have to code it myself).
>
> ... but ...
>
> > > Neil Brown agreed with this, and said, "I would like a tool
> > > (actually an emacs mode) that would show me exactly why a patch
> > > fails, and allow me to edit bits until it fits, and then apply
> > > it. I assume that is what you mean by "wiggle a patch into a
> > > file"." Pavel Machek also thought this would be a rerally great
> > > thing.
> >
> > The part I haven't figured out a nice solution for yet, is for
> > the failed hunks... how to display them sensibly. I was
> > thinking of using the 3-file display with the third file
> > showing only the failed hunks in the approximate location where
> > they were supposed to be. Not sure how to do this yet. Any
> > ideas welcome.
>
> It would be great to somehow split patches before feeding them to the
> patch. If you have one big hunk, and it fails because of one letter
> added somewhere in file, it is *big pain* to find/kill offending
> letter.
i though patch did that by itself, by attempting to merge per-hunk, and that
it saved all the failed merges in a reject file (file.rej). or perhaps
i'm missing something. isn't it the case?
(note that i don't have much experience using patch itself)
next prev parent reply other threads:[~2002-03-22 18:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-21 6:13 Martin Blais
2002-03-21 10:43 ` Tim Waugh
2002-03-22 9:27 ` Pavel Machek
2002-03-22 10:27 ` Andrew Morton
2002-03-22 18:19 ` Martin Blais [this message]
2002-03-22 18:25 ` Martin Blais
2002-03-22 21:44 ` Pavel Machek
2002-03-23 20:46 ` Martin Blais
2002-03-23 23:39 ` Pavel Machek
2002-03-25 6:53 ` Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200203221824.NAA5677457@cuba.discreet.qc.ca \
--to=blais@discreet.com \
--cc=blais@IRO.UMontreal.CA \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®