git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Dealing git ignored files

From
AAAlberto Fanjul Alonso <albertofanjul@gmail.com>
Date
Jun 12, 2020, 08:25 UTC
Message-ID
<CA+mQAOVanZ7Sv2q8nDjP+3VkBPBn-HC4bzxyU4RK4PRUu_BBWg@mail.gmail.com>
In-Reply-To
<CA+mQAOXSbwrNcxXYhp=FbPpQP01ENaGCD89AY7sbgfvwzOjyNg@mail.gmail.com>
Hi,

I developed a custom tool git-ignore to deal with different buildsystems and developing.

I start it as a helper, really not knowing how useful it will be but it end being used in any project at some moment (ignoring autotools in source tree generated files, excluding test generated files, excluding temp files, ignoring build directories...)

git ignore _build/ git ignore target/ git ignore -i Makefile.in git ignore -i '*.o' -x dist/

It offers man page, help and autocompletion so:

git ignore --help git ignore -h git ignore <tab>

all work as would be expected for any git command
If offers an easy access to `./git/info/excluded` `.gitignore` with:

git ignore -e git ignore -i -e

Which could fill a gap dealing with this files as `git config` does with config files

It is maintained under autotools and use sharness as test suite, so It pretty much mimic the git workflow.

I'm sure it can be improved in several ways, but do you think it is something that can be added to the standard git tooling?

Any feedback would be appreciated, issue tracker is open to missing features:
https://github.com/albfan/git-ignore/issues

Cheers, Alberto

Message 1 of 1 in “Dealing git ignored files”
  1. Alberto Fanjul AlonsoJun 12, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.