[all-commits] [llvm/llvm-project] 986bc3: [clang-format] Fix a serious bug in `git clang-for...
Owen Pan via All-commits
all-commits at lists.llvm.org
Sat Aug 10 13:31:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 986bc3d0719af653fecb77e8cfc59f39bec148fd
https://github.com/llvm/llvm-project/commit/986bc3d0719af653fecb77e8cfc59f39bec148fd
Author: Owen Pan <owenpiano at gmail.com>
Date: 2024-08-10 (Sat, 10 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.
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