Open svenssonaxel opened 2 years ago
This is partly alleviated by highlighting.
Strictly speaking, this problem is already present in unified diff format, since the ---
and +++
lines can be confused with -
and +
content lines given no context. Some highlighters would work faster if lines could be interpreted on their own, but at least we aren't introducing this problem.
For high readability, each line should preferably be possible to interpret on it's own, with no context. This is not the case for content lines, as the status markers
+
,-
and` are used in both hintful and unified diff format. This means, that looking at the line
+hello$, a user is unable to tell whether this adds
hello\n(hintful) or
hello$\n` (unified), without going back to the hunk header or getting help from a highlighter.