[PATCH v2] gitignore: Don't ignore 'tags' directory

Li Zhijian posted 1 patch 1 year, 2 months ago
.gitignore | 1 +
1 file changed, 1 insertion(+)
[PATCH v2] gitignore: Don't ignore 'tags' directory
Posted by Li Zhijian 1 year, 2 months ago
LKP reported warnings [1] regarding files being ignored:
   tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files
   tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files
   tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files

These warnings can be reproduced by compiling the kernel with the W=1 option.
Although these files are tracked by Git and the warnings are false
positives, adjusting the .gitignore entries will prevent these warnings and
ensure a smoother script execution.

[1] https://lore.kernel.org/linux-kselftest/202411251308.Vjm5MzVC-lkp@intel.com/

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 56972adb5031..6c57bb0259c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -128,6 +128,7 @@ series
 
 # ctags files
 tags
+!tags/
 TAGS
 
 # cscope files
-- 
2.44.0
Re: [PATCH v2] gitignore: Don't ignore 'tags' directory
Posted by Masahiro Yamada 1 year, 2 months ago
On Mon, Nov 25, 2024 at 5:37 PM Li Zhijian <lizhijian@fujitsu.com> wrote:
>
> LKP reported warnings [1] regarding files being ignored:


What I meant in the previous reply is LKP is unrelated
because "make W=1" is enough to reproduce these warnings.


Applied to linux-kbuild with the following simplified commit log.


    W=1 builds reported warnings regarding files being ignored:
         [ snip ]

    Although these files are tracked by Git and the warnings are false


Thanks.






>    tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files
>    tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files
>    tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files
>
> These warnings can be reproduced by compiling the kernel with the W=1 option.
> Although these files are tracked by Git and the warnings are false
> positives, adjusting the .gitignore entries will prevent these warnings and
> ensure a smoother script execution.
>
> [1] https://lore.kernel.org/linux-kselftest/202411251308.Vjm5MzVC-lkp@intel.com/
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 56972adb5031..6c57bb0259c6 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -128,6 +128,7 @@ series
>
>  # ctags files
>  tags
> +!tags/
>  TAGS
>
>  # cscope files
> --
> 2.44.0
>


-- 
Best Regards
Masahiro Yamada