Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: [PATCH] Add git format-patch produced patches to .gitignore

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:48:48

On Sun, May 16, 2010 at 07:52, Jonathan Nieder [off-list ref] wrote:
Pavan Kumar Sunkara wrote:
quoted
Ævar Arnfjörð Bjarmason wrote:
quoted
quoted
--- a/.gitignore
+++ b/.gitignore
@@ -203,3 +203,4 @@
 *.pdb
 /Debug/
 /Release/
+[0-9][0-9][0-9][0-9]-*.patch
[...]
quoted
git format-patch -M origin/master -o outgoing/

So, my patches will be in subdirectory outgoing.
But the regex rule in this patch won't be able to hide them.

What do u want to do in that case ?
Try it out.
Right, patches in outgoing/ will be ignored too because the rule isn't
prefixed with /, so it works regardless of whether the file is in a
subdirectory or not.
In fact, I was worried that this patch would trigger a similar
problem: maybe some test data directory contains format-patch
output?  In fact none do, so I like the patch.
None do, there's no file that matches '????-*.patch' in Git. Even if
there was you could still 'git add -f' it, which wouldn't be that big
of a problem because it would be part of some rarely touched test
suite in t/*.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help