Patchwork [U-Boot,v4,01/37] .gitignore: ingore files generated by Kbuild

login
register
mail settings
Submitter Masahiro Yamada
Date Jan. 10, 2014, 6:43 a.m.
Message ID <1389336274-7234-2-git-send-email-yamada.m@jp.panasonic.com>
Download mbox | patch
Permalink /patch/309141/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Masahiro Yamada - Jan. 10, 2014, 6:43 a.m.
Ignore generated files by Kbuild such as .*.cmd, *.order, etc.

Besides above,
 - Ignore *.s files
   We do not need to ignore with file name, asm-offsets.s
 - Do not ignore *.rej (for quilt)
 - Ignore backup files, \#*#

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

Changes in v4: None
Changes in v3: None
Changes in v2:
 - Do not double "*~"
 - Ignore more patterns

 .gitignore | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Patch

diff --git a/.gitignore b/.gitignore
index 3b14c25..d18ebf3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,16 +5,19 @@ 
 #
 # Normal rules
 #
-
-*.rej
-*.orig
-*.a
+.*
 *.o
+*.o.*
+*.a
+*.s
 *.su
-*~
+*.mod.c
+*.i
+*.lst
+*.order
 *.swp
-*.patch
 *.bin
+*.patch
 *.cfgtmp
 *.dts.tmp
 
@@ -24,7 +27,6 @@ 
 #
 # Top-level generic files
 #
-
 /MLO*
 /SPL
 /System.map
@@ -49,6 +51,12 @@ 
 /u-boot.sb
 
 #
+# git files that we don't want to ignore even it they are dot-files
+#
+!.gitignore
+!.mailmap
+
+#
 # Generated files
 #
 
@@ -64,7 +72,6 @@ 
 /include/generated/
 /include/spl-autoconf.mk
 /include/tpl-autoconf.mk
-asm-offsets.s
 
 # stgit generated dirs
 patches-*
@@ -90,3 +97,7 @@  GPATH
 GRTAGS
 GSYMS
 GTAGS
+
+*.orig
+*~
+\#*#