From 08f9f4592da1f7b9d22308b654d8853c58f489bf Mon Sep 17 00:00:00 2001 From: Adam Lindberg Date: Fri, 18 Nov 2022 17:26:58 +0100 Subject: [PATCH 1/2] Do not ignore everything starting with underscore recursively If you have other things in your project structure, e.g. `scripts/__main__.py` it would be ignored with the simple rule `_*` ("anything that starts with underscore anywhere"). It's better to use `./_*` meaning "anything that starts with underscore in the root folder (e.g. `_build`). --- apps/rebar/priv/templates/gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/rebar/priv/templates/gitignore b/apps/rebar/priv/templates/gitignore index f1c455451..ee23522f0 100644 --- a/apps/rebar/priv/templates/gitignore +++ b/apps/rebar/priv/templates/gitignore @@ -1,5 +1,5 @@ .rebar3 -_* +./_* .eunit *.o *.beam From cc4648d81d727ece0acef52ca099820acb782abb Mon Sep 17 00:00:00 2001 From: Adam Lindberg Date: Fri, 18 Nov 2022 18:25:56 +0100 Subject: [PATCH 2/2] Ignore only _build and _checkouts Instead of ignoring everything that starts with an underscore, which is too broad. --- apps/rebar/priv/templates/gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rebar/priv/templates/gitignore b/apps/rebar/priv/templates/gitignore index ee23522f0..cfb794cc9 100644 --- a/apps/rebar/priv/templates/gitignore +++ b/apps/rebar/priv/templates/gitignore @@ -1,5 +1,6 @@ .rebar3 -./_* +_build +_checkouts .eunit *.o *.beam @@ -12,7 +13,6 @@ log erl_crash.dump .rebar logs -_build .idea *.iml rebar3.crashdump