home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] is there a way to identify superfluous .gitignore lines?

  • Subject: Re: [OCLUG-Tech] is there a way to identify superfluous .gitignore lines?
  • From: Alex Pilon <alp [ at ] alexpilon [ dot ] ca>
  • Date: Mon, 11 Sep 2017 20:16:49 -0400
On Sun, Sep 10, 2017 at 06:52:28PM +0000, Robert P. J. Day wrote:
> is there some variation of, say, "git check-ignore" that will scan the
> hierarchy of .gitignore files once that build is done and display the
> .gitignore entries for which there are no matches?

Funny, man git-check-ignore. I think you want some mix of find, and git
check-ignore -z --non-matching --verbose --stdin, and maybe some IFS
which I haven't entirely figured out.