GNU bug report logs - #76318
31.0.50; emacs .gitignore doesn't untrack .patch files

Previous Next

Package: emacs;

Reported by: Elijah Gabe Perez <eg642616 <at> gmail.com>

Date: Sun, 16 Feb 2025 02:46:02 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 31.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76318 in the body.
You can then email your comments to 76318 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76318; Package emacs. (Sun, 16 Feb 2025 02:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elijah Gabe Perez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Feb 2025 02:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Perez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; emacs .gitignore doesn't untrack .patch files
Date: Sat, 15 Feb 2025 20:45:43 -0600
I'm not sure if is this on purpose, but
there is not any line in .gitignore file for untrack .patch files.

This can lead to accidents where the .patch is included in the commit.

-- 
                                                   - E.G via GNU Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76318; Package emacs. (Sun, 16 Feb 2025 06:43:01 GMT) Full text and rfc822 format available.

Message #8 received at 76318 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Perez <eg642616 <at> gmail.com>
Cc: 76318 <at> debbugs.gnu.org
Subject: Re: bug#76318: 31.0.50; emacs .gitignore doesn't untrack .patch files
Date: Sun, 16 Feb 2025 08:42:14 +0200
> From: Elijah Gabe Perez <eg642616 <at> gmail.com>
> Date: Sat, 15 Feb 2025 20:45:43 -0600
> 
> I'm not sure if is this on purpose, but
> there is not any line in .gitignore file for untrack .patch files.
> 
> This can lead to accidents where the .patch is included in the commit.

Please describe how such accident can happen.  A commit should include
only files that you told Git to include, no?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76318; Package emacs. (Sun, 16 Feb 2025 09:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 76318 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <basil <at> contovou.net>
To: Elijah Gabe Perez <eg642616 <at> gmail.com>
Cc: 76318 <at> debbugs.gnu.org
Subject: Re: bug#76318: 31.0.50; emacs .gitignore doesn't untrack .patch files
Date: Sun, 16 Feb 2025 10:06:05 +0100
Elijah Gabe Perez [2025-02-15 20:45 -0600] wrote:

> I'm not sure if is this on purpose, but
> there is not any line in .gitignore file for untrack .patch files.

Not a strong feeling, but since I generate .patch files within the
repository, I like being reminded by Git that I have them lying around
before e.g. I run git clean and lose them.  (Committing them
accidentally is less likely for me thanks to the Magit interface.)

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76318; Package emacs. (Sun, 16 Feb 2025 09:35:03 GMT) Full text and rfc822 format available.

Message #14 received at 76318 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Elijah Gabe Perez <eg642616 <at> gmail.com>
Cc: 76318 <at> debbugs.gnu.org
Subject: Re: bug#76318: 31.0.50; emacs .gitignore doesn't untrack .patch files
Date: Sun, 16 Feb 2025 10:34:07 +0100
On Feb 15 2025, Elijah Gabe Perez wrote:

> I'm not sure if is this on purpose, but
> there is not any line in .gitignore file for untrack .patch files.
> This can lead to accidents where the .patch is included in the commit.

That can happen with any file if you are careless.

The file .git/info/exclude exists for your personal customization.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Added tag(s) wontfix and notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 16 Feb 2025 14:08:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 76318 <at> debbugs.gnu.org and Elijah Gabe Perez <eg642616 <at> gmail.com> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 16 Feb 2025 14:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76318; Package emacs. (Sun, 16 Feb 2025 14:08:03 GMT) Full text and rfc822 format available.

Message #21 received at 76318-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>,
 Elijah Gabe Perez <eg642616 <at> gmail.com>
Cc: 76318-done <at> debbugs.gnu.org
Subject: Re: bug#76318: 31.0.50; emacs .gitignore doesn't untrack .patch files
Date: Sun, 16 Feb 2025 14:07:00 +0000
tags 76318 + notabug wontfix
close 76318
thanks

Andreas Schwab <schwab <at> linux-m68k.org> writes:

> On Feb 15 2025, Elijah Gabe Perez wrote:
>
>> I'm not sure if is this on purpose, but
>> there is not any line in .gitignore file for untrack .patch files.
>> This can lead to accidents where the .patch is included in the commit.
>
> That can happen with any file if you are careless.
>
> The file .git/info/exclude exists for your personal customization.

Agreed.  I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 17 Mar 2025 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 144 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.