[clang-format] git-clang-format throws an assertion when removing files as part of...
authormydeveloperday <mydeveloperday@gmail.com>
Wed, 20 Oct 2021 08:04:04 +0000 (09:04 +0100)
committermydeveloperday <mydeveloperday@gmail.com>
Wed, 20 Oct 2021 08:07:12 +0000 (09:07 +0100)
commit5e969125c6094b909493bcd8360497adcdf8f6f5
tree5291ac562ed5a87c0ec268dff00ff190690b377e
parente9fe8ef4b0aa68be782a9139e08e9337ef79a462
[clang-format] git-clang-format throws an assertion when removing files as part of the commit

Following a change {D111273} to allow git-clang-format to see single lines being removed,
we introduced a regression such that if you are removing a whole file it will
assert in clang-format as its given the -lines=0:0  (lines are 1 based)

Reviewed By: HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D112056
clang/tools/clang-format/git-clang-format