Skip to contentSkip to conversation

gitignore: Ignore all files starting with dot (.)

PATCH New Viresh Kumar 2 participants 3 messages Jan 22, 2020 – Jan 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitignore: Ignore all files starting with dot (.)

The purpose behind this modification was to start ignoring the .*.swp files, but then I looked at how the Linux kernel handles this and so this patch ignores anything that starts with a dot (.).

---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index 903d616b11c4..0a14ebcbeefc 100644
@@ -1,4 +1,5 @@
 CVS
+.*
 *~
 *.o
 *.o.d
Signature · 1 line
2.21.0.rc0.269.g1a574e7a288b
#1 lore raw

PATCH v2 1/1 gitignore: Ignore swap files

Update .gitignore to ignore .swp files.

---
V1->V2:
- Replace .* with .*.swp, as .* also ignored all .ignore files as well.

 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index 903d616b11c4..86d8190a3a65 100644
@@ -1,4 +1,5 @@
 CVS
+.*.swp
 *~
 *.o
 *.o.d
Signature · 1 line
2.21.0.rc0.269.g1a574e7a288b