* [PATCH] gitignore: Don't ignore 'tags' directory
@ 2024-11-25 7:23 Li Zhijian
2024-11-25 8:21 ` Masahiro Yamada
0 siblings, 1 reply; 3+ messages in thread
From: Li Zhijian @ 2024-11-25 7:23 UTC (permalink / raw)
To: linux-kernel
Cc: Masahiro Yamada, Nathan Chancellor, Kris Van Hees, rostedt,
Li Zhijian, kernel test robot
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 were generated by ./scripts/misc-check. 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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.gitignore b/.gitignore
index 56972adb5031..e63dbba823cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -130,6 +130,9 @@ series
tags
TAGS
+# don't ignore 'tags' directory
+!tags/
+
# cscope files
cscope.*
ncscope.*
--
2.44.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gitignore: Don't ignore 'tags' directory
2024-11-25 7:23 [PATCH] gitignore: Don't ignore 'tags' directory Li Zhijian
@ 2024-11-25 8:21 ` Masahiro Yamada
2024-11-25 8:30 ` Zhijian Li (Fujitsu)
0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2024-11-25 8:21 UTC (permalink / raw)
To: Li Zhijian
Cc: linux-kernel, Nathan Chancellor, Kris Van Hees, rostedt,
kernel test robot
On Mon, Nov 25, 2024 at 4:23 PM Li Zhijian <lizhijian@fujitsu.com> wrote:
>
> 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 were generated by ./scripts/misc-check. 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.
You do not need to mention a special tool because you can see them
when building the kernel with W=1.
You can say "Building the kernel with W=1 shows ..."
>
> [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 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 56972adb5031..e63dbba823cd 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -130,6 +130,9 @@ series
> tags
> TAGS
Unfortunately, GIT does not support "only match to regular files",
but you can make the intention clearer:
# ctags files
tags
!tags/
TAGS
You can add "!tags/" right below "tags".
Then, your comment is unnecessary.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gitignore: Don't ignore 'tags' directory
2024-11-25 8:21 ` Masahiro Yamada
@ 2024-11-25 8:30 ` Zhijian Li (Fujitsu)
0 siblings, 0 replies; 3+ messages in thread
From: Zhijian Li (Fujitsu) @ 2024-11-25 8:30 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-kernel, Nathan Chancellor, Kris Van Hees, rostedt,
kernel test robot
On 25/11/2024 16:21, Masahiro Yamada wrote:
> On Mon, Nov 25, 2024 at 4:23 PM Li Zhijian <lizhijian@fujitsu.com> wrote:
>>
>> 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 were generated by ./scripts/misc-check. 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.
>
> You do not need to mention a special tool because you can see them
> when building the kernel with W=1.
>
> You can say "Building the kernel with W=1 shows ..."
>
>
>
>>
>> [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 | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/.gitignore b/.gitignore
>> index 56972adb5031..e63dbba823cd 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -130,6 +130,9 @@ series
>> tags
>> TAGS
>
> Unfortunately, GIT does not support "only match to regular files",
> but you can make the intention clearer:
>
>
> # ctags files
> tags
> !tags/
> TAGS
>
>
>
> You can add "!tags/" right below "tags".> Then, your comment is unnecessary.
Thanks for your quickly review, i will update it soon
Thanks
Zhijian
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-25 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-25 7:23 [PATCH] gitignore: Don't ignore 'tags' directory Li Zhijian
2024-11-25 8:21 ` Masahiro Yamada
2024-11-25 8:30 ` Zhijian Li (Fujitsu)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®