perf tools: exclude the include/perf/ directory
PATCH v2 1/1 perf tools: exclude the include/perf/ directory
Commit 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the source tree") moved perf_dlfilters.h to the include/perf/ directory while include/perf is ignored because it has 'perf' in the name. Newly created files in the include/perf/ directory will be ignored.
Can check:
Before:
$ touch tools/perf/include/perf/junk $ git status | grep junk $ git check-ignore -v tools/perf/include/perf/junk tools/perf/.gitignore:6:perf tools/perf/include/perf/junk
After:
$ git status | grep junk tools/perf/include/perf/junk $ git check-ignore -v tools/perf/include/perf/junk
Add !include/perf/ to perf's .gitignore file.
---
Changes in v2:
- add 'Fixes:' tag in commit message
- make commit message more clearer
--- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+)
tools/perf/.gitignore +1 -0
@@ -4,6 +4,7 @@ PERF-GUI-VARS PERF-VERSION-FILE FEATURE-DUMP perf +!include/perf/ perf-read-vdso32 perf-read-vdsox32 perf-help
Signature · 1 line
2.25.1
Em Thu, Nov 03, 2022 at 02:27:04AM -0700, Donglin Peng escreveu:
Quoted 4 lines
Commit
3af1dfdd51e0("perf build: Moveperf_dlfilters.hin the source tree") movedperf_dlfilters.hto theinclude/perf/directory whileinclude/perfis ignored because it has 'perf' in the name. Newly created files in theinclude/perf/directory will be ignored.
Thanks, applied.
- Arnaldo
Quoted 40 lines
Can check:
Before:
$ touch tools/perf/include/perf/junk $ git status | grep junk $ git check-ignore -v tools/perf/include/perf/junk tools/perf/.gitignore:6:perf tools/perf/include/perf/junkAfter:
$ git status | grep junk tools/perf/include/perf/junk $ git check-ignore -v tools/perf/include/perf/junkAdd !include/perf/ to perf's .gitignore file.
Fixes 3af1dfdd51e0 ("perf build: Move perf_dlfilters.h in the source tree")Signed-off-by Donglin Peng <[email protected]>Acked-by Adrian Hunter <[email protected]>---
Changes in v2:
- add 'Fixes:' tag in commit message
- make commit message more clearer--- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+)tools/perf/.gitignore +1
-0@@ -4,6 +4,7 @@ PERF-GUI-VARS PERF-VERSION-FILE FEATURE-DUMP perf +!include/perf/ perf-read-vdso32 perf-read-vdsox32 perf-helpSignature · 1 line
2.25.1
Signature · 1 line
- Arnaldo