From 911d4be35bce21f1717867c66615ae6919c4c216 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sat, 4 Jan 2020 23:01:57 +0000 Subject: [PATCH] gitignore: ensure some non-generated are included A normal git clone doesn't catch these, as it _knows_ that the files are in the git repo and should be tracked. However, downloading a tarball, and adding it to a new git repo shows up the problem as important files are simply not added, and would be dropped by git clean. Reported-by: https://github.com/libopencm3/libopencm3/issues/1153 --- .gitignore | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 05b9c0c5..062c5177 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ *.a *.elf lib/*.ld +# (except this one!) +!lib/cortex-m-generic.ld *.stylecheck *.swp \#* @@ -23,11 +25,20 @@ latex/ # These are generated include/libopencm3/**/nvic.h include/libopencm3/**/**/nvic.h +# (not these three though...) +!include/libopencm3/cm3/nvic.h +!include/libopencm3/dispatch/nvic.h +!include/libopencm3/lm4f/nvic.h lib/**/vector_nvic.c lib/**/**/vector_nvic.c +# (not this one either) +!lib/dispatch/vector_nvic.c DoxygenLayout.xml doc/*/Doxyfile doc/*/DoxygenLayout_*.xml +# (annnd, not these two templates either) +!doc/templates/DoxygenLayout_Device.xml +!doc/templates/DoxygenLayout_Root.xml doc/*/doxy.sourcelist include/libopencmsis/efm32/ include/libopencmsis/gd32/