Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-23 Thread Jason Gunthorpe
On Sun, Oct 18, 2020 at 11:26:59AM -0700, Joe Perches wrote: > I'll post it again as a reply to this email with a > with a sign-off and a better commit description and > Linus/Andrew can decide if it's better to revert > f5f613259f3f or apply it separately. Gentle reminder on this, it is the last

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-18 Thread Joe Perches
On Sun, 2020-10-18 at 20:15 +0200, Geert Uytterhoeven wrote: > Hi Joe, rehi Geert > On Sun, Oct 18, 2020 at 6:07 PM Joe Perches wrote: > > On Sun, 2020-10-18 at 16:03 +0200, Geert Uytterhoeven wrote: [] > > > This is now commit f5f613259f3fea81 ("checkpatch: allow not using -f > > > with files t

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-18 Thread Geert Uytterhoeven
Hi Joe, On Sun, Oct 18, 2020 at 6:07 PM Joe Perches wrote: > On Sun, 2020-10-18 at 16:03 +0200, Geert Uytterhoeven wrote: > > On Tue, Aug 25, 2020 at 2:12 AM Joe Perches wrote: > > > If a file exists in git and checkpatch is used without the -f > > > flag for scanning a file, then checkpatch wil

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-18 Thread Joe Perches
On Sun, 2020-10-18 at 16:03 +0200, Geert Uytterhoeven wrote: > Hi Joe, > > On Tue, Aug 25, 2020 at 2:12 AM Joe Perches wrote: > > If a file exists in git and checkpatch is used without the -f > > flag for scanning a file, then checkpatch will scan the file > > assuming it's a patch and emit: > >

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-10-18 Thread Geert Uytterhoeven
Hi Joe, On Tue, Aug 25, 2020 at 2:12 AM Joe Perches wrote: > If a file exists in git and checkpatch is used without the -f > flag for scanning a file, then checkpatch will scan the file > assuming it's a patch and emit: > > ERROR: Does not appear to be a unified-diff format patch > > Change the b

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-09-12 Thread Joe Perches
On Mon, 2020-08-24 at 17:09 -0700, Joe Perches wrote: > If a file exists in git and checkpatch is used without the -f > flag for scanning a file, then checkpatch will scan the file > assuming it's a patch and emit: > > ERROR: Does not appear to be a unified-diff format patch > > Change the behavi

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-08-28 Thread Joe Perches
On Tue, 2020-08-25 at 14:23 +0200, Rasmus Villemoes wrote: > On 25/08/2020 02.09, Joe Perches wrote: > > If a file exists in git and checkpatch is used without the -f > > flag for scanning a file, then checkpatch will scan the file > > assuming it's a patch [] > > +sub git_is_single_file { > > +

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-08-28 Thread Joe Perches
On Tue, 2020-08-25 at 14:23 +0200, Rasmus Villemoes wrote: > On 25/08/2020 02.09, Joe Perches wrote: > > If a file exists in git and checkpatch is used without the -f > > flag for scanning a file, then checkpatch will scan the file > > assuming it's a patch and emit: > > > > ERROR: Does not appear

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-08-25 Thread Rasmus Villemoes
On 25/08/2020 02.09, Joe Perches wrote: > If a file exists in git and checkpatch is used without the -f > flag for scanning a file, then checkpatch will scan the file > assuming it's a patch and emit: > > ERROR: Does not appear to be a unified-diff format patch > > Change the behavior to assume t

[PATCH] checkpatch: Allow not using -f with files that are in git

2020-08-24 Thread Joe Perches
If a file exists in git and checkpatch is used without the -f flag for scanning a file, then checkpatch will scan the file assuming it's a patch and emit: ERROR: Does not appear to be a unified-diff format patch Change the behavior to assume the -f flag if the file exists in git. Signed-off-by: