[all-commits] [llvm/llvm-project] efdd0e: [clang-format] Fix a serious bug in `git clang-for...
Owen Pan via All-commits
all-commits at lists.llvm.org
Tue Aug 13 00:01:17 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: efdd0e9fda292f9040367fcd6a9b2c2590fea739
https://github.com/llvm/llvm-project/commit/efdd0e9fda292f9040367fcd6a9b2c2590fea739
Author: Owen Pan <owenpiano at gmail.com>
Date: 2024-08-13 (Tue, 13 Aug 2024)
Changed paths:
A clang/test/Format/list-ignored.cpp
M clang/tools/clang-format/ClangFormat.cpp
M clang/tools/clang-format/git-clang-format
Log Message:
-----------
[clang-format] Fix a serious bug in `git clang-format -f` (#102629)
With the --force (or -f) option, git-clang-format wipes out input files
excluded by a .clang-format-ignore file if they have unstaged changes.
This patch adds a hidden clang-format option --list-ignored that lists
such excluded files for git-clang-format to filter out.
Fixes #102459.
(cherry picked from commit 986bc3d0719af653fecb77e8cfc59f39bec148fd)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list