diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-12 14:02:51 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-12 14:04:04 -0800 |
| commit | 29228cbdc5f8a80b1f61c7cc209ba8e3714cc38e (patch) | |
| tree | 18d54fe85f03ca9b82099f486014f9bc6adc560b /diff.h | |
| parent | ced0561828271e8fc3fa2699754c5925969111b5 (diff) | |
| download | git-29228cbdc5f8a80b1f61c7cc209ba8e3714cc38e.tar.gz | |
diff: refactor output of incomplete line
Create a helper function that reacts to "\ No newline at the end of
file" in preparation for unifying the incomplete line handling in
the code path that handles xdiff output and the code path that
bypasses xdiff and produces a complete-rewrite patch.
Currently the output from the DIFF_SYMBOL_CONTEXT_INCOMPLETE case
still (ab)uses the same code as what is used for context lines, but
that would change in a later step where we introduce support to treat
an incomplete line as a whitespace error.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
0 files changed, 0 insertions, 0 deletions
