[01/14] maint: Ignore dot dirs

Message ID 20190504121427.9638-2-lu_zero@gentoo.org
State New
Headers show
Series
  • [01/14] maint: Ignore dot dirs
Related show

Commit Message

Luca Barbato May 4, 2019, 12:14 p.m.
They are usually created by tools and editors.
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Alexandra Hájková May 13, 2019, 8:33 a.m. | #1
On Sat, May 4, 2019 at 2:14 PM Luca Barbato <lu_zero@gentoo.org> wrote:
>
> They are usually created by tools and editors.
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 1a08fd15c5..693fa5636a 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -29,3 +29,4 @@
>  /coverage.info
>  /lcov/
>  /mapfile
> +.*/
> --
> 2.12.2
>

OK
Diego Biurrun May 13, 2019, 8:55 a.m. | #2
On Sat, May 04, 2019 at 02:14:14PM +0200, Luca Barbato wrote:
> They are usually created by tools and editors.
> --- a/.gitignore
> +++ b/.gitignore
> @@ -29,3 +29,4 @@
>  /coverage.info
>  /lcov/
>  /mapfile
> +.*/

This ignores dotdirs everywhere, not just in the top-level directory, which
seems overreaching and possibly does not match your intent.

Even if restricted to the top-level it feels like overreach. What files are
you trying to ignore exactly?

Diego
Luca Barbato May 13, 2019, 9:05 a.m. | #3
On 13/05/2019 10:55, Diego Biurrun wrote:
> On Sat, May 04, 2019 at 02:14:14PM +0200, Luca Barbato wrote:
>> They are usually created by tools and editors.
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -29,3 +29,4 @@
>>   /coverage.info
>>   /lcov/
>>   /mapfile
>> +.*/
> 
> This ignores dotdirs everywhere, not just in the top-level directory, which
> seems overreaching and possibly does not match your intent.
> 
> Even if restricted to the top-level it feels like overreach. What files are
> you trying to ignore exactly?
> 

Editor .dirs and .build directories.

lu

Patch

diff --git a/.gitignore b/.gitignore
index 1a08fd15c5..693fa5636a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,4 @@ 
 /coverage.info
 /lcov/
 /mapfile
+.*/