
On 10 June 2012 13:45, Russell Coker <russell@coker.com.au> wrote:
I have to deal with some very long patches that have many sections that are of interest. What I need is a tool that allows basic regular expressions to search and which then gets every file that matches. IE if a patch changed files a.c, b.c, and c.c and I did a search for printf then I would want patches for the files which have changes related to printf and have the changes include all sections for each file in question.
Not sure if any of these will help your immediate problem (filterdiff?), however they are worth knowing about regardless. Package: patchutils Status: install ok installed Multi-Arch: foreign Priority: optional Section: text Installed-Size: 223 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Version: 0.3.2-1.1 Depends: libc6 (>= 2.4), perl, patch, debianutils (>= 1.16) Description: Utilities to work with patches This package includes the following utilities: - combinediff creates a cumulative patch from two incremental patches - dehtmldiff extracts a diff from an HTML page - filterdiff extracts or excludes diffs from a diff file - fixcvsdiff fixes diff files created by CVS that "patch" mis-interprets - flipdiff exchanges the order of two patches - grepdiff shows which files are modified by a patch matching a regex - interdiff shows differences between two unified diff files - lsdiff shows which files are modified by a patch - recountdiff recomputes counts and offsets in unified context diffs - rediff and editdiff fix offsets and counts of a hand-edited diff - splitdiff separates out incremental patches - unwrapdiff demangles patches that have been word-wrapped Original-Maintainer: Christoph Berg <myon@debian.org> Homepage: http://cyberelk.net/tim/patchutils/index.html -- Brian May <brian@microcomaustralia.com.au>