Messages in this thread | | | Subject | Re: [PATCH] scripts: add checkmaintainers.py | From | Joe Perches <> | Date | Tue, 18 Dec 2012 11:34:41 -0800 |
| |
On Tue, 2012-12-18 at 19:28 +0100, Borislav Petkov wrote: > On Mon, Dec 17, 2012 at 11:09:43AM -0800, Joe Perches wrote: > > This needs a new test here to avoid chirping > > on files that aren't added, deleted or renamed. > > > > next if ($realfile eq $modifiedfile); > > Hmm, I don't think that catches file renames when using the normal 'git > diff' output:
That depends on whether or not an actual patch follows.
This looks for the +++ and --- lines in a patch.
If no patch is attached, you should get
ERROR: Does not appear to be a unified-diff format patch
| |