diff mbox series

.gitignore: Add *.patch

Message ID cd8683878852a55f1b28807a470e078d21a5e689.1662545140.git.viresh.kumar@linaro.org (mailing list archive)
State New, archived
Headers show
Series .gitignore: Add *.patch | expand

Commit Message

Viresh Kumar Sept. 7, 2022, 10:05 a.m. UTC
Add *.patch entry to .gitignore file to stop showing git generated
patches in commands like 'git status'.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Jürgen Groß Sept. 7, 2022, 10:09 a.m. UTC | #1
On 07.09.22 12:05, Viresh Kumar wrote:
> Add *.patch entry to .gitignore file to stop showing git generated
> patches in commands like 'git status'.
> 
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>   .gitignore | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 9f9f18c97d5f..d9a4fd038145 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -20,6 +20,7 @@
>   *.gcno
>   *.gcda
>   *.py[ocd]
> +*.patch
>   TAGS
>   GTAGS
>   GRTAGS

NAK.

We have some files named *.patch in our tree (e.g. stubdom/polarssl.patch).


Juergen
Viresh Kumar Sept. 7, 2022, 10:16 a.m. UTC | #2
On 07-09-22, 12:09, Juergen Gross wrote:
> On 07.09.22 12:05, Viresh Kumar wrote:
> > Add *.patch entry to .gitignore file to stop showing git generated
> > patches in commands like 'git status'.
> > 
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> > ---
> >   .gitignore | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/.gitignore b/.gitignore
> > index 9f9f18c97d5f..d9a4fd038145 100644
> > --- a/.gitignore
> > +++ b/.gitignore
> > @@ -20,6 +20,7 @@
> >   *.gcno
> >   *.gcda
> >   *.py[ocd]
> > +*.patch
> >   TAGS
> >   GTAGS
> >   GRTAGS
> 
> NAK.
> 
> We have some files named *.patch in our tree (e.g. stubdom/polarssl.patch).

Ahh, I missed that :(

Will it be acceptable to have something like this then to just ignore the
patches ?

[0-9]*-*.patch
Andrew Cooper Sept. 7, 2022, 10:26 a.m. UTC | #3
On 07/09/2022 11:09, Juergen Gross wrote:
> On 07.09.22 12:05, Viresh Kumar wrote:
>> Add *.patch entry to .gitignore file to stop showing git generated
>> patches in commands like 'git status'.
>>
>> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>> ---
>>   .gitignore | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/.gitignore b/.gitignore
>> index 9f9f18c97d5f..d9a4fd038145 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -20,6 +20,7 @@
>>   *.gcno
>>   *.gcda
>>   *.py[ocd]
>> +*.patch
>>   TAGS
>>   GTAGS
>>   GRTAGS
>
> NAK.
>
> We have some files named *.patch in our tree (e.g.
> stubdom/polarssl.patch).

Agreed, and some future usecases wanting to add new patches
(livepatch-build-tools and livepatching testing).

Viresh: If you want to hide patches, you can add it to your local
.git/info/exclude file, but it is better to get into the habit of
maintaining a clean working tree.

~Andrew
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 9f9f18c97d5f..d9a4fd038145 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,7 @@ 
 *.gcno
 *.gcda
 *.py[ocd]
+*.patch
 TAGS
 GTAGS
 GRTAGS