Skip to content

Commit

Permalink
[clang-format] Fix a bug in git-clang-format --binary (#74176)
Browse files Browse the repository at this point in the history
Fixed #74165.
  • Loading branch information
owenca committed Dec 3, 2023
1 parent 5db1c6e commit 2a3f119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/tools/clang-format/git-clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def main():
else:
if len(commits) > 2:
die('at most two commits allowed; %d given' % len(commits))
opts.binary=os.path.abspath(opts.binary)
changed_lines = compute_diff_and_extract_lines(commits, files, opts.staged)
if opts.verbose >= 1:
ignored_files = set(changed_lines)
Expand Down

0 comments on commit 2a3f119

Please sign in to comment.