Skip to contentSkip to conversation

.gitignore: Add vim swap files

PATCH NAK Julien Grall 4 participants 10 messages May 9, 2013 – May 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 .gitignore: Add vim swap files

Changes in v2:
- update .hgignore

---
 .gitignore |    1 +
 .hgignore  |    1 +
 2 files changed, 2 insertions(+)
.gitignore +1 -0
index 6753368..960c29e 100644
@@ -2,6 +2,7 @@
 *.orig
 *.rej
 *~
+*.swp
 *.o
 *.d
 *.opic
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$
 .*\.tmp$
 .*\.flc$
 .*\.orig$
Signature · 1 line
1.7.10.4
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Julien Grall

Changes in v2:
- update .hgignore

Much appreciated.

Quoted 29 lines
---
 .gitignore |    1 +
 .hgignore  |    1 +
 2 files changed, 2 insertions(+)
.gitignore +1 -0
index 6753368..960c29e 100644
@@ -2,6 +2,7 @@
 *.orig
 *.rej
 *~
+*.swp
 *.o
 *.d
 *.opic
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$
 .*\.tmp$
 .*\.flc$
 .*\.orig$
Nacked-by NAK
#2 lore raw

Andrew Cooper writes ("Re: [PATCH V2] .gitignore: Add vim swap files"):

Quoted 9 lines · Julien Grall
Quoted 4 lines

Changes in v2:
- update .hgignore

Much appreciated.

Quoted 9 lines

.hgignore line 14

Quoted 9 lines
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

AIUI the format of .hgignore files is lines containing implicitly-^-anchored regexps.

So this is wrong. Please copy the (hideous) syntax of the other entries.

Furthermore, while it's good to update both ignore files I think it's fine to update only one of them if that's what's annoying you.

Ian.

#3 lore raw
Quoted 15 lines · Ian Jackson

Andrew Cooper writes ("Re: [PATCH V2] .gitignore: Add vim swap files"):

Quoted 10 lines · Julien Grall

.hgignore line 14

Quoted 9 lines
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

AIUI the format of .hgignore files is lines containing implicitly-^-anchored regexps.

Quoted 2 lines

So this is wrong. Please copy the (hideous) syntax of the other entries.

If you read the rest of the thread you will find that I noted this and fixed it as I committed it.

(Does your MUA not do threading?)

Ian.

#4 lore raw

Ian Campbell writes ("Re: [Xen-devel] [PATCH V2] .gitignore: Add vim swap files"):

Quoted 2 lines

If you read the rest of the thread you will find that I noted this and fixed it as I committed it.

Yes.

Quoted 1 line

(Does your MUA not do threading?)

Sometimes it does threading...

Ian.

#5 lore raw
In reply to Ian Jackson
Quoted 11 lines · Ian Jackson

Andrew Cooper writes ("Re: [PATCH V2] .gitignore: Add vim swap files"):

Quoted 8 lines · Julien Grall
Quoted 4 lines

Changes in v2:
- update .hgignore

Much appreciated.

Quoted 11 lines
Quoted 9 lines

.hgignore line 14

Quoted 9 lines
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

AIUI the format of .hgignore files is lines containing implicitly-^-anchored regexps.

Nope - the documentation states otherwise

http://www.selenic.com/mercurial/hgignore.5.html

"Neither glob nor regexp patterns are rooted. A glob-syntax pattern of the form *.c will match a file ending in .c in any directory, and a regexp pattern of the form \.c$ will do the same. To root a regexp pattern, start it with ^."

Quoted 3 lines

So this is wrong. Please copy the (hideous) syntax of the other entries.

It is wrong because it failes to escape the literal . (which admittedly I missed when reviewing it)

Just because the rest of the .hgignore is wrong doesn't mean new additions shouldn't be.

~Andrew

Quoted 5 lines

Furthermore, while it's good to update both ignore files I think it's fine to update only one of them if that's what's annoying you.

Ian.

#6 lore raw
Quoted 34 lines · Andrew Cooper
Quoted 11 lines · Ian Jackson

Andrew Cooper writes ("Re: [PATCH V2] .gitignore: Add vim swap files"):

Quoted 8 lines · Julien Grall
Quoted 4 lines

Changes in v2:
- update .hgignore

Much appreciated.

Quoted 11 lines
Quoted 9 lines

.hgignore line 14

Quoted 9 lines
.hgignore +1 -0
index 6b432f7..4bd24fc 100644
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

AIUI the format of .hgignore files is lines containing implicitly-^-anchored regexps.

Nope - the documentation states otherwise

http://www.selenic.com/mercurial/hgignore.5.html

"Neither glob nor regexp patterns are rooted. A glob-syntax pattern of the form *.c will match a file ending in .c in any directory, and a regexp pattern of the form \.c$ will do the same. To root a regexp pattern, start it with ^."

Quoted 1 line
Quoted 8 lines
Quoted 2 lines

So this is wrong. Please copy the (hideous) syntax of the other entries.

It is wrong because it failes to escape the literal . (which admittedly I missed when reviewing it)

Just because the rest of the .hgignore is wrong doesn't mean new additions shouldn't be.

I don't think anything is wrong with the current .hgignore, where the precise path matters the entries are explicitly anchored with ^ e.g. ^docs/figs/xenserver\.eps$
^docs/html/.*$
^docs/interface/WARNINGS$
etc

Where only the extension or filename matters but not the path it isn't anchored, like the examples in the context of the patch.

I fixed this is .*\.swp$ as I committed it, which is consistent with the existing entries even though the ".*" is technically redundant AFAICT.

Ian.

#7 lore raw
In reply to Julien Grall
Quoted 26 lines · Julien Grall

Changes in v2:
- update .hgignore

---
 .gitignore |    1 +
 .hgignore  |    1 +
 2 files changed, 2 insertions(+)
.gitignore +1 -0
index 6753368..960c29e 100644
@@ -2,6 +2,7 @@
 *.orig
 *.rej
 *~
+*.swp
 *.o
 *.d
 *.opic
.hgignore +0 -0
index 6b432f7..4bd24fc 100644

.hgignore line 14

Quoted 4 lines
.hgignore +1 -0
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

hgignore is a regex, so I think this should be ".*\.swp$"

Ian.

#8 lore raw
Quoted 25 lines · Ian Campbell
Quoted 24 lines · Julien Grall

Changes in v2:
- update .hgignore

---
 .gitignore |    1 +
 .hgignore  |    1 +
 2 files changed, 2 insertions(+)
.gitignore +1 -0
index 6753368..960c29e 100644
@@ -2,6 +2,7 @@
 *.orig
 *.rej
 *~
+*.swp
 *.o
 *.d
 *.opic
.hgignore +0 -1
index 6b432f7..4bd24fc 100644
--- a/.hgignore
Quoted 8 lines

.hgignore line 14

Quoted 6 lines

+++ b/.hgignore

.hgignore +1 -0
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

hgignore is a regex, so I think this should be ".*\.swp$"

Actually, I'll just make this change when I apply...

#9 lore raw
Quoted 35 lines · Ian Campbell
Quoted 25 lines · Ian Campbell
Quoted 24 lines · Julien Grall

Changes in v2:
- update .hgignore

---
 .gitignore |    1 +
 .hgignore  |    1 +
 2 files changed, 2 insertions(+)
.gitignore +1 -0
index 6753368..960c29e 100644
@@ -2,6 +2,7 @@
 *.orig
 *.rej
 *~
+*.swp
 *.o
 *.d
 *.opic
.hgignore +0 -1
index 6b432f7..4bd24fc 100644
--- a/.hgignore
Quoted 8 lines

.hgignore line 14

Quoted 6 lines

+++ b/.hgignore

.hgignore +1 -0
@@ -11,6 +11,7 @@
 .*\.tar\.bz2$
 .*\.tar\.gz$
 .*~$
+.swp$

hgignore is a regex, so I think this should be ".*\.swp$"

Quoted 1 line

Actually, I'll just make this change when I apply...

Which I have now done...