[RFC PATCH] gitignore: allow gitignore to ignore most dot file

Bin Meng bmeng.cn at gmail.com
Sun Jul 30 18:20:54 PDT 2023


On Sat, Jul 29, 2023 at 5:49 PM Inochi Amaoto <inochiama at outlook.com> wrote:
>
> Nowdays, most of the editor use files or directories begin with dot to

typo: Nowadays

> store some settings. So let git ignore these files and directories to
> reduce potential mistakes.
>
> Add dot match to ignore any editor file and there are two exceptions:
> - .gitignore
> - .clang-format
>
> Signed-off-by: Inochi Amaoto <inochiama at outlook.com>
> ---
> Note:
> 1. AFAIK, the vim swap file is also begin with dot.
> 2. the patch also covers the patch `gitignore: add VSCode workspace dir`
> so that patch is not needed anymore.
> ---
>  .gitignore | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>



More information about the opensbi mailing list