summaryrefslogtreecommitdiff
path: root/rerere.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-17 07:28:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-17 10:01:43 (GMT)
commit8588567c96490b8d236b1bc13f9bcb0dfa118efe (patch)
tree5c5f026346ef69293b14419028f15ecf39d5701d /rerere.c
parent191f24171718e894cb5ba806bc45861ebac95e96 (diff)
downloadgit-8588567c96490b8d236b1bc13f9bcb0dfa118efe.zip
git-8588567c96490b8d236b1bc13f9bcb0dfa118efe.tar.gz
git-8588567c96490b8d236b1bc13f9bcb0dfa118efe.tar.bz2
rerere: honor conflict-marker-size attribute
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rerere.c')
-rw-r--r--rerere.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rerere.c b/rerere.c
index 5f332cb..b988b46 100644
--- a/rerere.c
+++ b/rerere.c
@@ -5,6 +5,7 @@
#include "dir.h"
#include "resolve-undo.h"
#include "ll-merge.h"
+#include "attr.h"
/* if rerere_enabled == -1, fall back to detection of .git/rr-cache */
static int rerere_enabled = -1;
@@ -221,7 +222,7 @@ static int handle_file(const char *path, unsigned char *sha1, const char *output
{
int hunk_no = 0;
struct rerere_io_file io;
- int marker_size = 7;
+ int marker_size = ll_merge_marker_size(path);
memset(&io, 0, sizeof(io));
io.io.getline = rerere_file_getline;
@@ -288,7 +289,7 @@ static int handle_cache(const char *path, unsigned char *sha1, const char *outpu
struct cache_entry *ce;
int pos, len, i, hunk_no;
struct rerere_io_mem io;
- int marker_size = 7;
+ int marker_size = ll_merge_marker_size(path);
/*
* Reproduce the conflicted merge in-core