On 14/5/19 09:28, Ian Abbott wrote: > On 14/05/2019 03:19, Geordan Neukum wrote: >> The .gitignore files under the LICENSES/exceptions and LICENSES/other >> directories cannot have a size of 0 or else they are subject to removal >> by the make target 'distclean'. Modify the .gitignore files to >> ignore all files except for themselves. These .gitignores can be >> updated further or removed outright as new licenses are added to these >> directories in the future. >> >> Signed-off-by: Geordan Neukum <gneukum1@xxxxxxxxx> >> --- >> LICENSES/exceptions/.gitignore | 4 ++++ >> LICENSES/other/.gitignore | 4 ++++ >> 2 files changed, 8 insertions(+) >> >> diff --git a/LICENSES/exceptions/.gitignore b/LICENSES/exceptions/.gitignore >> index e69de29bb..d5e7eacf3 100644 >> --- a/LICENSES/exceptions/.gitignore >> +++ b/LICENSES/exceptions/.gitignore >> @@ -0,0 +1,4 @@ >> +# Ignore everything in this directory >> +* >> +# Except for this file >> +!.gitignore >> diff --git a/LICENSES/other/.gitignore b/LICENSES/other/.gitignore >> index e69de29bb..d5e7eacf3 100644 >> --- a/LICENSES/other/.gitignore >> +++ b/LICENSES/other/.gitignore >> @@ -0,0 +1,4 @@ >> +# Ignore everything in this directory >> +* >> +# Except for this file >> +!.gitignore >> > > I may be missing something, but why not have just a comment line? > One side effect of doing it this way, that it's more likely to remind, whoever `git add`s files to these directories that the .gitignore needs to be removed (unless they have aliased git add to git add -f..). Personally, I am fine with both ways, but I would prefer the comment to say something along the lines of: # Placeholder as upstream checkpatch.pl requires this directory to exist # This file can be removed when new files are added Cheers Ahmad -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox