Skip to content

Add export-ignore rules to .gitattributes#1146

Merged
dantleech merged 2 commits into
phpbench:masterfrom
sasezaki:patch-gitattributes
May 6, 2026
Merged

Add export-ignore rules to .gitattributes#1146
dantleech merged 2 commits into
phpbench:masterfrom
sasezaki:patch-gitattributes

Conversation

@sasezaki
Copy link
Copy Markdown
Contributor

@sasezaki sasezaki commented May 6, 2026

Current archive targets other than bin/, extensions/, lib/ will be as follows:

gh api repos/phpbench/phpbench/tarball/HEAD | tar -tzf - | cut -d/ -f2- | sed '/^$/d' | grep -vE '^(bin|extensions|lib)/' | sort
CHANGELOG.md
composer.json
docs/
docs/annotributes.rst
docs/configuration-prelude.rst
docs/configuration.rst
docs/conf.py
docs/contents.rst
docs/customisation/
docs/customisation/command.rst
docs/customisation/environment-provider.rst
docs/customisation/executor.rst
docs/customisation/extension.rst
docs/customisation/progress-logger.rst
docs/customisation/report.rst
docs/customisation.rst
docs/development/
docs/development/debugging.rst
docs/development.rst
docs/.doctor-rst.yaml
docs/environment.rst
docs/examples/
docs/examples/config_linters.rst
docs/examples/file_input.rst
docs/examples/hashing.rst
docs/examples.rst
docs/executors/
docs/executors/options/
docs/executors/options/_debug.rst
docs/executors/options/_memory_centric_microtime.rst
docs/executors/options/_remote.rst
docs/executors/options/_xdebug_profile.rst
docs/executors.rst
docs/expression.rst
docs/_extension/
docs/_extension/approved.py
docs/_extension/codeimport.py
docs/extensions/
docs/extensions.rst
docs/extensions/xdebug.rst
docs/faq.rst
docs/guides/
docs/guides/assertions.rst
docs/guides/benchmark-runner.rst
docs/guides/ci-integration.rst
docs/guides/regression-testing.rst
docs/guides/reports.rst
docs/guides.rst
docs/guides/storage.rst
docs/guides/writing-benchmarks.rst
docs/images/
docs/images/barchart_aggregate.png
docs/images/baseline.png
docs/images/blinken.gif
docs/images/example_config_linter.png
docs/images/example_hashing.png
docs/images/html.png
docs/images/profile.png
docs/images/rstdev.png
docs/images/table_aggregate.png
docs/index.rst
docs/installing.rst
docs/Makefile
docs/quick-start.rst
docs/reference.rst
docs/report-components/
docs/report-components/barchart-aggregate.rst
docs/report-components/options/
docs/report-components/options/_bar_chart_aggregate.rst
docs/report-components/options/_section.rst
docs/report-components/options/_table_aggregate.rst
docs/report-components/options/_text.rst
docs/report-components.rst
docs/report-components/section.rst
docs/report-components/table-aggregate.rst
docs/report-components/text.rst
docs/report-generators/
docs/report-generators/bare.rst
docs/report-generators/component.rst
docs/report-generators/composite.rst
docs/report-generators/env.rst
docs/report-generators/expression.rst
docs/report-generators/options/
docs/report-generators/options/_bare.rst
docs/report-generators/options/_component.rst
docs/report-generators/options/_composite.rst
docs/report-generators/options/_env.rst
docs/report-generators/options/_expression.rst
docs/report-generators.rst
docs/report-renderers/
docs/report-renderers/options/
docs/report-renderers/options/_console.rst
docs/report-renderers/options/_delimited.rst
docs/report-renderers/options/_html.rst
docs/report-renderers.rst
docs/requirements.txt
docs/_static/
docs/_static/logo.png
docs/_templates/
docs/_templates/about.html
docs/_templates/navigation.html
examples/
examples/Annotations/
examples/Annotations/AnnotatedBench.php
examples/Assertion/
examples/Assertion/ExampleAssertionsBench.php
examples/Attributes/
examples/Attributes/AttributedBench.php
examples/Benchmark/
examples/Benchmark/ConfigLinters/
examples/Benchmark/ConfigLinters/config_linters_report.json
examples/Benchmark/ConfigLinters/JsonDecodeLinterBench.php
examples/Benchmark/ConfigLinters/LinterBenchCase.php
examples/Benchmark/ConfigLinters/NoOpLinterBench.php
examples/Benchmark/ConfigLinters/NoOpLinter.php
examples/Benchmark/ConfigLinters/SeldLinterBench.php
examples/Benchmark/FileInput/
examples/Benchmark/FileInput/file-input/
examples/Benchmark/FileInput/FileInputBench.php
examples/Benchmark/FileInput/file-input/example1
examples/Benchmark/FileInput/file-input/example2
examples/Benchmark/Hashing/
examples/Benchmark/Hashing/github_action_benchmark.json
examples/Benchmark/Hashing/HashingBench.php
examples/Benchmark/Hashing/hashing_report.json
examples/Benchmark/Macro/
examples/Benchmark/Macro/BaseBenchCase.php
examples/Benchmark/Macro/benchmarks/
examples/Benchmark/Macro/benchmarks/NothingBench.php
examples/Benchmark/Macro/LogBench.php
examples/Benchmark/Macro/ReportBench.php
examples/Benchmark/Macro/RunBench.php
examples/Benchmark/Micro/
examples/Benchmark/Micro/ComplexParameterBench.php
examples/Benchmark/Micro/DependencyInjection/
examples/Benchmark/Micro/DependencyInjection/ContainerBench.php
examples/Benchmark/Micro/Math/
examples/Benchmark/Micro/Math/KdeBench.php
examples/Benchmark/Micro/Math/StatisticsBench.php
examples/Benchmark/NothingBench.php
examples/bootstrap.php
examples/Command/
examples/Command/report-component-barchart-aggregate
examples/Command/report-component-section
examples/Command/report-component-table-aggregate
examples/Command/report-component-table-aggregate-expand
examples/Command/report-component-text
examples/Command/report-generators-aggregate
examples/Command/report-generators-break
examples/Command/report-generators-column-diff
examples/Command/report-generators-column-override
examples/Command/report-generators-column-visibility
examples/Command/report-generators-component
examples/Command/report-generators-composite
examples/Command/report-generators-data
examples/Command/report-generators-expression
examples/Command/report-generators-expressions
examples/Command/report-generators-filter-value
examples/Command/report-output-html
examples/Command/report-ref-latest-and-aggregate
examples/Command/run-configuring-reports
examples/Command/run-configuring-reports-extend
examples/Command/run-configuring-reports-phpbenchjson
examples/Command/run-reports-aggregate
examples/Command/run-reports-aggregate-and-env
examples/Command/run-reports-benchmark
examples/Command/run-reports-default
examples/Command/run-reports-env
examples/Command/run-reports-overview
examples/Expression/
examples/Expression/arithmetic_1
examples/Expression/coalesce_1
examples/Expression/comparison_1
examples/Expression/contains_1
examples/Expression/count_1
examples/Expression/display_as_time_1
examples/Expression/filter_1
examples/Expression/first_1
examples/Expression/frame_1
examples/Expression/func_format
examples/Expression/func_max
examples/Expression/func_mean
examples/Expression/func_min
examples/Expression/func_mode
examples/Expression/func_percent_diff
examples/Expression/func_rstdev
examples/Expression/func_stdev
examples/Expression/func_variance
examples/Expression/if_1
examples/Expression/join_1
examples/Expression/logical_operators_1
examples/Expression/memory_unit_1
examples/Expression/null_safe_1
examples/Expression/string_operators_1
examples/Expression/sum_1
examples/Expression/time_convert_1
examples/Expression/time_unit_1
examples/Expression/time_unit_2
examples/Expression/time_unit_3
examples/Expression/time_unit_func_1
examples/Expression/tolerance_1
examples/Expression/tolerance_2
examples/Extension/
examples/Extension/AcmeExtension.php
examples/Extension/Command/
examples/Extension/Command/CatsCommand.php
examples/Extension/Environment/
examples/Extension/Environment/HomeProvider.php
examples/Extension/Executor/
examples/Extension/Executor/AcmeExecutor.php
examples/Extension/ProgressLogger/
examples/Extension/ProgressLogger/CatLogger.php
examples/Extension/Report/
examples/Extension/Report/AcmeGenerator.php
examples/OutputTest/
examples/OutputTest/AssertionTestBench.php
examples/OutputTest/OutputTestBench.php
LICENSE
phpbench.schema.json
phpstan/
phpstan/Container.stub
README.md
templates/
templates/html/
templates/html/BarChart.phtml
templates/html/HtmlDocument.phtml
templates/html/node/
templates/html/node/BooleanNode.phtml
templates/html/node/ConcatenatedNode.phtml
templates/html/node/Node.phtml
templates/html/node/PercentDifferenceNode.phtml
templates/html/node/RelativeDeviationNode.phtml
templates/html/node/StringNode.phtml
templates/html/node/UnitNode.phtml
templates/html/Report.phtml
templates/html/Reports.phtml
templates/html/Table.phtml
templates/html/TableRow.phtml
templates/html/Text.phtml

With this PR, the archive targets other than bin/, extensions/, lib/ will be as follows:

gh api repos/sasezaki/phpbench/tarball/patch-gitattributes | tar -tzf - | cut -d/ -f2- | sed '/^$/d' | grep -vE '^(bin|extensions|lib)/' | sort
CHANGELOG.md
composer.json
LICENSE
phpbench.schema.json
README.md
templates/
templates/html/
templates/html/BarChart.phtml
templates/html/HtmlDocument.phtml
templates/html/node/
templates/html/node/BooleanNode.phtml
templates/html/node/ConcatenatedNode.phtml
templates/html/node/Node.phtml
templates/html/node/PercentDifferenceNode.phtml
templates/html/node/RelativeDeviationNode.phtml
templates/html/node/StringNode.phtml
templates/html/node/UnitNode.phtml
templates/html/Report.phtml
templates/html/Reports.phtml
templates/html/Table.phtml
templates/html/TableRow.phtml
templates/html/Text.phtml

Changes:

  • Added /docs/ export-ignore
  • Added /examples/ export-ignore
  • Added /phpstan/ export-ignore
  • Added /templates/ export-ignore

@dantleech
Copy link
Copy Markdown
Member

templates s are required though...

@sasezaki
Copy link
Copy Markdown
Contributor Author

sasezaki commented May 6, 2026

@dantleech
I'm sorry, I made a mistake. I just removed the templates entry from export-ignore.

@sasezaki sasezaki force-pushed the patch-gitattributes branch from 0815f6d to 6526765 Compare May 6, 2026 09:51
@dantleech dantleech merged commit 2f2742b into phpbench:master May 6, 2026
14 checks passed
@dantleech
Copy link
Copy Markdown
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants