From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Felipe Contreras <felipe.contreras@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH 2/4] .gitignore: remove dangling file
Date: Tue, 1 Dec 2020 21:26:24 -0500 [thread overview]
Message-ID: <X8b7UMcsfaD0OFv4@coredump.intra.peff.net> (raw)
In-Reply-To: <xmqqczztqszv.fsf@gitster.c.googlers.com>
On Tue, Dec 01, 2020 at 10:30:12AM -0800, Junio C Hamano wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
> > The library was removed 7 years ago on commit ae34ac126f. But not from
> > the .gitignore file.
> >
> > Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> > ---
>
> Good eyes. Any automation used here, or just mark I eyeballs?
I was curious how hard it would be to find unused ones, and it is not
too bad:
find * -type f |
git check-ignore --stdin -v |
perl -e '
my $ignore_file = shift;
while (<>) {
/^\Q$ignore_file\E:(\d+)/ and $seen{$1} = 1;
}
open(my $fh, "<", $ignore_file);
while (<$fh>) {
print "$. $_" unless $seen{$.};
}
' .gitignore
It turns up many hits, depending on what built cruft you have in your
directory (having a crufty state is nice because it shows which patterns
are used, but it also may mean you have leftover trash from old versions
that doesn't get built anymore, and which we wouldn't notice). So I
think a human has to apply some brain-power to the result to see which
ones are plausibly created by other people's environments.
You might want to revisit some of the old dist rules (do we still ever
build git-core-*? "make dist" doesn't seem to. Likewise, "make rpm" and
"make deb" are no more, so perhaps it's time to drop those ignores.
The one below didn't take much brain-power, though.
-- >8 --
Subject: [PATCH] gitignore: drop duplicate entry for git-sh-i18n
This was accidentally added by e00cf070a4 (git-sh-i18n.sh: add no-op
gettext() and eval_gettext() wrappers, 2011-05-14), even though an
earlier commit in the same series had already done so.
Signed-off-by: Jeff King <peff@peff.net>
---
.gitignore | 1 -
1 file changed, 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index f85d02c854..d20d4afc1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -152,7 +152,6 @@
/git-sh-i18n
/git-sh-i18n--envsubst
/git-sh-setup
-/git-sh-i18n
/git-shell
/git-shortlog
/git-show
--
2.29.2.894.g2dadb8c6b8
next prev parent reply other threads:[~2020-12-02 2:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 0:46 [PATCH 0/4] Random cleanups Felipe Contreras
2020-12-01 0:46 ` [PATCH 1/4] refspec: trivial cleanup Felipe Contreras
2020-12-01 11:43 ` Jeff King
2020-12-01 18:29 ` Junio C Hamano
2020-12-01 23:25 ` Felipe Contreras
2020-12-02 2:01 ` Jeff King
2020-12-02 2:27 ` Felipe Contreras
2020-12-01 0:46 ` [PATCH 2/4] .gitignore: remove dangling file Felipe Contreras
2020-12-01 18:30 ` Junio C Hamano
2020-12-01 23:32 ` Felipe Contreras
2020-12-02 2:26 ` Jeff King [this message]
2020-12-02 3:30 ` Felipe Contreras
2020-12-02 11:46 ` [PATCH] gitignore: remove entry for git serve René Scharfe
2020-12-02 11:03 ` Johannes Schindelin
2020-12-02 12:48 ` Jeff King
2020-12-02 22:32 ` Junio C Hamano
2020-12-01 0:46 ` [PATCH 3/4] test: completion: fix typos Felipe Contreras
2020-12-01 0:46 ` [PATCH 4/4] tests: lib-functions: trivial style cleanups Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=X8b7UMcsfaD0OFv4@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).