From: Junio C Hamano <gitster@pobox.com>
To: Sebastian Schuberth <sschuberth@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Clean up stale .gitignore and .gitattribute patterns
Date: Fri, 23 Jun 2023 10:26:23 -0700 [thread overview]
Message-ID: <xmqqcz1may4g.fsf@gitster.g> (raw)
In-Reply-To: <CAHGBnuOR+MU50jhNBHw8buWS_Yr9D92mErvgoi=cK16a=4_YUA@mail.gmail.com> (Sebastian Schuberth's message of "Fri, 23 Jun 2023 17:29:42 +0200")
Sebastian Schuberth <sschuberth@gmail.com> writes:
> is there a command to easily check patterns in .gitignore and
> .gitattributes to still match something? I'd like to remove / correct
> patterns that don't match anything anymore due to (re)moved files.
I guess "git check-attr --stdin" and "git check-ignore --stdin" will
be part of the solution to your problem, but I do not know what the
other parts would be.
Feeding "ls-files" output to "check-ignore --stdin" feels sort-of
oxymoron because by definition the output from "ls-files" cannot
contain any ignored paths.
next prev parent reply other threads:[~2023-06-23 17:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 15:29 Clean up stale .gitignore and .gitattribute patterns Sebastian Schuberth
2023-06-23 17:26 ` Junio C Hamano [this message]
2023-06-24 1:16 ` Jeff King
2023-06-24 1:12 ` Jeff King
2023-06-26 7:51 ` Sebastian Schuberth
2023-06-26 15:55 ` Junio C Hamano
2023-06-26 16:42 ` Sebastian Schuberth
2023-06-27 6:51 ` Jeff King
2023-06-27 6:55 ` Sebastian Schuberth
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=xmqqcz1may4g.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=sschuberth@gmail.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).