Skip to contentSkip to conversation

gitignore: Add files starting with .

PATCH Superseded Michel Thierry 3 participants 7 messages Feb 10, 2017 – Feb 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitignore: Add files starting with .

I cant be the only one that have added .tags by mistake.

Cc Marius Vlad <[email protected]>
Cc Petri Latvala <[email protected]>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index 6204965a..e1457bf6 100644
@@ -81,6 +81,7 @@ core
 *.swo
 *.swp
 *.dirstamp
+.*
 cscope.*
 TAGS
 build-aux/
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 5 lines · Michel Thierry

I cant be the only one that have added .tags by mistake.

Cc Marius Vlad <[email protected]>
Cc Petri Latvala <[email protected]>

<SNIP>

.gitignore core · line 84

Quoted 6 lines

+++ b/.gitignore

.gitignore +1 -0
@@ -81,6 +81,7 @@ core
  *.swo
  *.swp
  *.dirstamp
+.*

You need to at least have "!.gitignore" to avoid ignoring further changes :)

Regards, Joonas

Quoted 3 lines

 cscope.*
 TAGS
 build-aux/

Signature · 7 lines
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 9 lines · Joonas Lahtinen
Quoted 5 lines · Michel Thierry

I cant be the only one that have added .tags by mistake.

Cc Marius Vlad <[email protected]>
Cc Petri Latvala <[email protected]>

<SNIP>

Quoted 10 lines

.gitignore core · line 84

Quoted 6 lines

+++ b/.gitignore

.gitignore +1 -0
@@ -81,6 +81,7 @@ core
 *.swo
 *.swp
 *.dirstamp
+.*

You need to at least have "!.gitignore" to avoid ignoring further changes :)

My plan was to prevent further changes (not).

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

PATCH v2 1/1 gitignore: Add files starting with .

In reply to Joonas Lahtinen

I cant be the only one that have added .tags by mistake.

v2: Do not ignore .gitignore

Cc Petri Latvala <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
.gitignore +2 -0
index 6204965a..4d5867a2 100644
@@ -78,9 +78,11 @@ core
 #		Edit the following section as needed
 # For example, !report.pc overrides *.pc. See 'man gitignore'
 #
+!.gitignore
 *.swo
 *.swp
 *.dirstamp
+.*
 cscope.*
 TAGS
 build-aux/
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 17 lines · Michel Thierry

I cant be the only one that have added .tags by mistake.

v2: Do not ignore .gitignore

Cc Petri Latvala <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
  .gitignore | 2 ++
  1 file changed, 2 insertions(+)
.gitignore +0 -0
index 6204965a..4d5867a2 100644
@@ -78,9 +78,11 @@ core
  #		Edit the following section as needed

.gitignore core · line 88

Quoted 10 lines
.gitignore +2 -0
  # For example, !report.pc overrides *.pc. See 'man gitignore'
  #
+!.gitignore
  *.swo
  *.swp
  *.dirstamp
+.*
  cscope.*
  TAGS
  build-aux/

"!pattern" re-includes files excluded by _previous_ patterns. Reorder those changes so that .* is before !.gitignore.

For the record, that patch "works" for that particular source-root .gitignore file because it's already tracked by git and .gitignore only affects untracked files. The difference will only come up when adding a new .gitignore file in another directory.

Signature · 6 lines
Petri Latvala

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

PATCH v3 1/1 gitignore: Add files starting with .

I cant be the only one that have added .tags by mistake.

v2: Do not ignore .gitignore
v3: Move !.gitignore at the end, otherwise it'll ignore new .gitignore files in another directory (Petri)

Cc Petri Latvala <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 .gitignore | 6 ++++++
 1 file changed, 6 insertions(+)
.gitignore +6 -0
index 6204965a..de79020f 100644
@@ -81,6 +81,7 @@ core
 *.swo
 *.swp
 *.dirstamp
+.*
 cscope.*
 TAGS
 build-aux/
@@ -93,3 +94,8 @@ intel-gpu-tools-*/
 
 piglit
 results
+
+#
+# git files that we don't want to ignore even it they are dot-files
+#
+!.gitignore
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v3 1/1
#6 lore raw
Quoted 9 lines · Michel Thierry

I cant be the only one that have added .tags by mistake.

v2: Do not ignore .gitignore
v3: Move !.gitignore at the end, otherwise it'll ignore new .gitignore files in another directory (Petri)

Cc Petri Latvala <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Quoted 17 lines
---
  .gitignore | 6 ++++++
  1 file changed, 6 insertions(+)
.gitignore +1 -0
index 6204965a..de79020f 100644
@@ -81,6 +81,7 @@ core
  *.swo
  *.swp
  *.dirstamp
+.*
  cscope.*
  TAGS
  build-aux/

.gitignore intel-gpu-tools-*/ · line 101

Quoted 8 lines
.gitignore +5 -0
@@ -93,3 +94,8 @@ intel-gpu-tools-*/
 
  piglit
  results
+
+#
+# git files that we don't want to ignore even it they are dot-files
+#
+!.gitignore

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx