From: Werner LEMBERG <wl@gnu.org>
To: emacs-devel@gnu.org
Subject: off-topic: Conversion multi-line diff to single-line
Date: Mon, 29 Aug 2011 07:39:21 +0200 (CEST) [thread overview]
Message-ID: <20110829.073921.430174446.wl@gnu.org> (raw)
Folks,
I have an off-topic question, and maybe you can help. Is there a
program or script which converts the multiline chunks of diff (without
-u or -c) into single-line chunks? This is, I want to have this
XXX
< foo1
< foo2
< foo3
---
> bar1
> bar2
> bar3
converted into
XXX
< foo1
---
> bar1
YYY
< foo2
---
> bar2
ZZZ
> foo3
---
< bar3
Such an output greatly simplifies comparison of large sorted word
lists with sparse or systematic insertions, deletions, or changes.
Werner
next reply other threads:[~2011-08-29 5:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-29 5:39 Werner LEMBERG [this message]
2011-08-29 16:08 ` off-topic: Conversion multi-line diff to single-line Stefan Monnier
2011-08-29 21:04 ` Juri Linkov
2011-09-03 6:38 ` Werner LEMBERG
2011-09-03 9:42 ` Juri Linkov
2011-09-03 10:28 ` Werner LEMBERG
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=20110829.073921.430174446.wl@gnu.org \
--to=wl@gnu.org \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.