aboutsummaryrefslogtreecommitdiffstats
path: root/git-rediff.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-11-27 23:06:04 +0100
committerMattias Andrée <m@maandree.se>2024-11-27 23:06:04 +0100
commit507ceb22e8f2b53d47a729cab1095f7d521e23c8 (patch)
tree4d9ddc2d7d6ebde324c0ab6a7b1861c9d831a3f0 /git-rediff.c
parentUse git attributes to determine conflict marker size (diff)
downloadgit-rediff-507ceb22e8f2b53d47a729cab1095f7d521e23c8.tar.gz
git-rediff-507ceb22e8f2b53d47a729cab1095f7d521e23c8.tar.bz2
git-rediff-507ceb22e8f2b53d47a729cab1095f7d521e23c8.tar.xz
Fix support for CRLF line endings (which git may actually produce on conflict marker lines)HEAD1.0.4master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'git-rediff.c')
-rw-r--r--git-rediff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rediff.c b/git-rediff.c
index f1b277b..7e0727b 100644
--- a/git-rediff.c
+++ b/git-rediff.c
@@ -113,7 +113,7 @@ line_is_marker(struct line *line, char marker_symbol, size_t conflict_marker_siz
if (line->text[i] != marker_symbol)
return 0;
- return i == line->len || line->text[i] == ' ' || line->text[i] == '\n';
+ return i == line->len || line->text[i] == ' ' || line->text[i] == '\n' || line->text[i] == '\r';
}
static void