Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jidicula/clang-format-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.17.0
Choose a base ref
...
head repository: jidicula/clang-format-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.18.0
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Mar 16, 2026

  1. perf: batch all files into a single docker run invocation (#281)

    * perf: batch all files into a single docker run invocation
    
    Instead of spawning a new Docker container for every source file,
    collect all files into an array and pass them to clang-format in a
    single docker run call. This eliminates the per-file container startup
    overhead that made the action slower than compiling a full project.
    
    For clang-format >= 10, all files are passed to --dry-run --Werror in
    one invocation. For older versions (< 10), a single container runs
    format-diff-old.sh (mounted read-only) which diffs each file.
    
    Failing files are still listed individually in failing-files.txt and
    on stderr, and the script exits with 1 if any file is incorrectly
    formatted.
    
    Fixes #147
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    
    * style: Run shfmt
    
    * style: Rename format-diff-old.sh
    
    * Update check.sh
    
    ---------
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    jidicula and Copilot authored Mar 16, 2026
    Configuration menu
    Copy the full SHA
    322ba61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    654a770 View commit details
    Browse the repository at this point in the history
Loading