[PATCH libevdev] Review/update .gitignore files

Gaetan Nadon memsize at videotron.ca
Mon Nov 18 12:12:35 PST 2013


On 13-11-18 05:51 AM, Peter Hutterer wrote:
> I wonder, how hard would it be to write a makefile hook that pulls
> down a generic .gitignore file, adds a custom per-project section and
> saves that as .gitignore. add it to cleanfiles/maintainercleanfiles
> and then you dont' have to duplicate the various .gitignores. and I
> could just re-use the hook in every project :)
>
> something along the lines of:
>
> gitignore: .gitignore.local
>     curl http://freedesktop.org/default.gitignore > .gitignore
>     cat $^ >> .gitignore
>
> bit more polish, but that may be worthy pursuing.
>
It would require accessing internet while building which many consider a
major sin.

A git submodule would perhaps be a more elegant solution.

The main .gitignore has not changed in 3 years in any of the 250 xorg
modules. Over time I gathered some feedback and I have added a few
patterns. What I propose in the patch in in fact version 2 of the main
xorg .gitignore I intend to deploy.

Your suggestion would be useful if the main common gitignore would
change frequently. I was a bit surprised to see it didn't, developers
use the same tools as they did several years ago.

There was nothing wrong in the current toplevel .gitignore file, I just
future-proofed it. I can collapse the subdirs gitignore files into the
toplevel one if you prefer.


More information about the Input-tools mailing list