[XEN PATCH] .gitignore: Only ignore hidden dependency files

Anthony PERARD posted 1 patch 1 year, 2 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230131154235.19845-1-anthony.perard@citrix.com
.gitignore | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[XEN PATCH] .gitignore: Only ignore hidden dependency files
Posted by Anthony PERARD 1 year, 2 months ago
The current pattern also ignores directories suffixed with ".d", like:
    tools/hotplug/*/rc.d
    tools/hotplug/*/init.d

Avoid this by only ignoring "hidden" files, for which name starts with
a dot.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 .gitignore | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 880ba88c55..5b30d8fc36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,12 @@
 .hg
 .*.cmd
+.*.d
+.*.d2
 .*.tmp
 *.orig
 *~
 *.swp
 *.o
-*.d
-*.d2
 *.cppcheck.txt
 *.cppcheck.xml
 *.opic
-- 
Anthony PERARD
Re: [XEN PATCH] .gitignore: Only ignore hidden dependency files
Posted by Jan Beulich 1 year, 2 months ago
On 31.01.2023 16:42, Anthony PERARD wrote:
> The current pattern also ignores directories suffixed with ".d", like:
>     tools/hotplug/*/rc.d
>     tools/hotplug/*/init.d
> 
> Avoid this by only ignoring "hidden" files, for which name starts with
> a dot.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>