summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-09 06:22:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-09 06:22:05 (GMT)
commitf7af75777fd5a217d43acb2098cf043a73c20b01 (patch)
treef19af42d6785fa427437250f8125c7fe9f6fceef
parentbb11eb31a2e7da7f878dd501d39f6877ec00eb7d (diff)
parentde551d472ed65fa570d9456e8498348fe4c8e7d8 (diff)
downloadgit-f7af75777fd5a217d43acb2098cf043a73c20b01.zip
git-f7af75777fd5a217d43acb2098cf043a73c20b01.tar.gz
git-f7af75777fd5a217d43acb2098cf043a73c20b01.tar.bz2
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: process_{tree,blob}: Remove useless xstrdup calls
-rw-r--r--list-objects.c2
-rw-r--r--reachable.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/list-objects.c b/list-objects.c
index c8b8375..dd243c7 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -23,7 +23,6 @@ static void process_blob(struct rev_info *revs,
if (obj->flags & (UNINTERESTING | SEEN))
return;
obj->flags |= SEEN;
- name = xstrdup(name);
add_object(obj, p, path, name);
}
@@ -78,7 +77,6 @@ static void process_tree(struct rev_info *revs,
if (parse_tree(tree) < 0)
die("bad tree object %s", sha1_to_hex(obj->sha1));
obj->flags |= SEEN;
- name = xstrdup(name);
add_object(obj, p, path, name);
me.up = path;
me.elem = name;
diff --git a/reachable.c b/reachable.c
index 3b1c18f..b515fa2 100644
--- a/reachable.c
+++ b/reachable.c
@@ -48,7 +48,6 @@ static void process_tree(struct tree *tree,
obj->flags |= SEEN;
if (parse_tree(tree) < 0)
die("bad tree object %s", sha1_to_hex(obj->sha1));
- name = xstrdup(name);
add_object(obj, p, path, name);
me.up = path;
me.elem = name;