Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] kbuild: add *.rej pattern to .gitignore

1 view
Skip to first unread message

Guennadi Liakhovetski

unread,
Apr 21, 2010, 7:50:02 AM4/21/10
to
Tell git to ignore .rej files, generated by patch(1).

Signed-off-by: Guennadi Liakhovetski <g.liakh...@gmx.de>
---
diff --git a/.gitignore b/.gitignore
index a2939fc..17ababa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -74,5 +74,6 @@ GSYMS
GTAGS

*.orig
+*.rej
*~
\#*#
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Américo Wang

unread,
Apr 21, 2010, 11:30:01 AM4/21/10
to
On Wed, Apr 21, 2010 at 01:47:29PM +0200, Guennadi Liakhovetski wrote:
>Tell git to ignore .rej files, generated by patch(1).
>
>Signed-off-by: Guennadi Liakhovetski <g.liakh...@gmx.de>

NACK.

You have to handle *.rej files, not leaving them there.


>---
>diff --git a/.gitignore b/.gitignore
>index a2939fc..17ababa 100644
>--- a/.gitignore
>+++ b/.gitignore
>@@ -74,5 +74,6 @@ GSYMS
> GTAGS
>
> *.orig
>+*.rej
> *~
> \#*#
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majo...@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/

--
Live like a child, think like the god.

Guennadi Liakhovetski

unread,
Apr 21, 2010, 11:40:03 AM4/21/10
to
On Wed, 21 Apr 2010, Américo Wang wrote:

> On Wed, Apr 21, 2010 at 01:47:29PM +0200, Guennadi Liakhovetski wrote:
> >Tell git to ignore .rej files, generated by patch(1).
> >
> >Signed-off-by: Guennadi Liakhovetski <g.liakh...@gmx.de>
>
> NACK.
>
> You have to handle *.rej files, not leaving them there.

Hm? I know I have to handle them, and I do handle them, but IMHO it's
entirely valid and up to the user to leave them where they are. You could
apply similar argument to *.orig or to *~ files. In other words, I'm not
convinced.

Thanks
Guennadi

> >---
> >diff --git a/.gitignore b/.gitignore
> >index a2939fc..17ababa 100644
> >--- a/.gitignore
> >+++ b/.gitignore
> >@@ -74,5 +74,6 @@ GSYMS
> > GTAGS
> >
> > *.orig
> >+*.rej
> > *~
> > \#*#

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

Américo Wang

unread,
Apr 21, 2010, 12:30:02 PM4/21/10
to
On Wed, Apr 21, 2010 at 05:31:34PM +0200, Guennadi Liakhovetski wrote:
>On Wed, 21 Apr 2010, Américo Wang wrote:
>
>> On Wed, Apr 21, 2010 at 01:47:29PM +0200, Guennadi Liakhovetski wrote:
>> >Tell git to ignore .rej files, generated by patch(1).
>> >
>> >Signed-off-by: Guennadi Liakhovetski <g.liakh...@gmx.de>
>>
>> NACK.
>>
>> You have to handle *.rej files, not leaving them there.
>
>Hm? I know I have to handle them, and I do handle them, but IMHO it's
>entirely valid and up to the user to leave them where they are. You could
>apply similar argument to *.orig or to *~ files. In other words, I'm not
>convinced.
>

I am not the only people who is against this, there
was a discussion about this before, please search lkml
archive.

Thanks.

Michal Marek

unread,
Apr 21, 2010, 4:30:03 PM4/21/10
to
On 21.4.2010 18:33, Américo Wang wrote:
> On Wed, Apr 21, 2010 at 05:31:34PM +0200, Guennadi Liakhovetski wrote:
>> On Wed, 21 Apr 2010, Américo Wang wrote:
>>> On Wed, Apr 21, 2010 at 01:47:29PM +0200, Guennadi Liakhovetski wrote:
>>>> Tell git to ignore .rej files, generated by patch(1).
>>>>
>>>> Signed-off-by: Guennadi Liakhovetski <g.liakh...@gmx.de>
>>> NACK.
>>>
>>> You have to handle *.rej files, not leaving them there.
>> Hm? I know I have to handle them, and I do handle them, but IMHO it's
>> entirely valid and up to the user to leave them where they are. You could
>> apply similar argument to *.orig or to *~ files. In other words, I'm not
>> convinced.
>>
>
> I am not the only people who is against this, there
> was a discussion about this before, please search lkml
> archive.

...and there is no point in starting the flamewar again. If you want to
ignore *.rej files, which is a perfectly valid personal preference, I
suggeest you add the pattern to .git/info/exclude.

hth,
Michal

0 new messages