aboutsummaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-26 10:35:33 -0700
committerJunio C Hamano <gitster@pobox.com>2012-04-26 10:35:33 -0700
commit3f231e235fb4b9c4d937a50fa4fbf35f9ed10387 (patch)
tree6f064ed970aa6363222824e2899681c383544c2d /sequencer.c
parent10a20b43c3d03ea1fab9095f96eda66086d3dcd2 (diff)
parent4f7cb99ada26be5d86402a6e060f3ee16a672f16 (diff)
downloadgit-3f231e235fb4b9c4d937a50fa4fbf35f9ed10387.tar.gz
git-3f231e235fb4b9c4d937a50fa4fbf35f9ed10387.tar.xz
Merge branch 'jk/diff-no-rename-empty' into maint
Rename detection logic used to match two empty files as renames during merge-recursive, leading unnatural mismerges. By Jeff King * jk/diff-no-rename-empty: merge-recursive: don't detect renames of empty files teach diffcore-rename to optionally ignore empty content make is_empty_blob_sha1 available everywhere drop casts from users EMPTY_TREE_SHA1_BIN
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index a37846a59..4307364b2 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -164,7 +164,7 @@ static void write_message(struct strbuf *msgbuf, const char *filename)
static struct tree *empty_tree(void)
{
- return lookup_tree((const unsigned char *)EMPTY_TREE_SHA1_BIN);
+ return lookup_tree(EMPTY_TREE_SHA1_BIN);
}
static int error_dirty_index(struct replay_opts *opts)