Add extraction of UNIX file modes and symlink targets from Git diffs.
Review Request #12069 — Created Feb. 20, 2022 and submitted
GitDiffParser
(and subclasses) now extract UNIX file modes from the
mode lines and symlink targets from the diff data, setting them on the
ParsedDiffFile
, eventually making its way intoFileDiff
.In the future, we'll be able to show these mode changes in the diff
viewer, or replicate them when applying a diff (technically they already
are, but we'll have the metadata surrounding those changes).
Unit tests pass.
Summary | ID |
---|---|
32286ba3d8fa82f215c99f5058049d5aedcc7d41 |
Description | From | Last Updated |
---|---|---|
W605 invalid escape sequence '\w' |
reviewbot | |
W605 invalid escape sequence '\.' |
reviewbot | |
W605 invalid escape sequence '\.' |
reviewbot | |
W605 invalid escape sequence '\w' |
reviewbot | |
W605 invalid escape sequence '\d' |
reviewbot | |
F841 local variable 'mode_re' is assigned to but never used |
reviewbot |