Browse Source

Merge branch 'maint'

* maint:
  Make sure the empty tree exists when needed in merge-recursive.
  Don't use memcpy when source and dest. buffers may overlap
  no need to install manpages as executable
maint
Junio C Hamano 18 years ago
parent
commit
73c7f5ec05
  1. 4
      Documentation/Makefile
  2. 2
      index-pack.c
  3. 2
      merge-recursive.c

4
Documentation/Makefile

@ -56,8 +56,8 @@ man7: $(DOC_MAN7) @@ -56,8 +56,8 @@ man7: $(DOC_MAN7)

install: man
$(INSTALL) -d -m755 $(DESTDIR)$(man1dir) $(DESTDIR)$(man7dir)
$(INSTALL) $(DOC_MAN1) $(DESTDIR)$(man1dir)
$(INSTALL) $(DOC_MAN7) $(DESTDIR)$(man7dir)
$(INSTALL) -m644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
$(INSTALL) -m644 $(DOC_MAN7) $(DESTDIR)$(man7dir)


#

2
index-pack.c

@ -96,7 +96,7 @@ static void flush(void) @@ -96,7 +96,7 @@ static void flush(void)
if (output_fd >= 0)
write_or_die(output_fd, input_buffer, input_offset);
SHA1_Update(&input_ctx, input_buffer, input_offset);
memcpy(input_buffer, input_buffer + input_offset, input_len);
memmove(input_buffer, input_buffer + input_offset, input_len);
input_offset = 0;
}
}

2
merge-recursive.c

@ -1238,7 +1238,7 @@ static int merge(struct commit *h1, @@ -1238,7 +1238,7 @@ static int merge(struct commit *h1,

tree->object.parsed = 1;
tree->object.type = OBJ_TREE;
hash_sha1_file(NULL, 0, tree_type, tree->object.sha1);
write_sha1_file(NULL, 0, tree_type, tree->object.sha1);
merged_common_ancestors = make_virtual_commit(tree, "ancestor");
}


Loading…
Cancel
Save