Commit 69caed59 authored by Brandon Williams's avatar Brandon Williams Committed by Junio C Hamano

unpack-trees: rename 'new' variables

Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.
Signed-off-by: default avatarBrandon Williams <>
Signed-off-by: default avatarJunio C Hamano <>
parent 17651326
......@@ -194,10 +194,10 @@ static int do_add_entry(struct unpack_trees_options *o, struct cache_entry *ce,
static struct cache_entry *dup_entry(const struct cache_entry *ce)
unsigned int size = ce_size(ce);
struct cache_entry *new = xmalloc(size);
struct cache_entry *new_entry = xmalloc(size);
memcpy(new, ce, size);
return new;
memcpy(new_entry, ce, size);
return new_entry;
static void add_entry(struct unpack_trees_options *o,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment