[PATCH] D126365: [git-clang-format] Stop ignoring changes for files with space in path
Eitot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 26 02:11:18 PDT 2022
Eitot updated this revision to Diff 432221.
Eitot added a comment.
I have uploaded a complete diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126365/new/
https://reviews.llvm.org/D126365
Files:
clang/tools/clang-format/git-clang-format
Index: clang/tools/clang-format/git-clang-format
===================================================================
--- clang/tools/clang-format/git-clang-format
+++ clang/tools/clang-format/git-clang-format
@@ -345,7 +345,7 @@
line = convert_string(line)
match = re.search(r'^\+\+\+\ [^/]+/(.*)', line)
if match:
- filename = match.group(1).rstrip('\r\n')
+ filename = match.group(1).rstrip('\r\n\t')
match = re.search(r'^@@ -[0-9,]+ \+(\d+)(,(\d+))?', line)
if match:
start_line = int(match.group(1))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126365.432221.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220526/3ea0abbb/attachment.bin>
More information about the cfe-commits
mailing list