diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:22:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:22:09 -0700 |
commit | 0122cf6611f0963a7aa72592da18013c3584557e (patch) | |
tree | 4dd782d943eb24032975ff73a086dc1b2b9c502e | |
parent | Merge branch 'jc/maint-1.6.0-keep-pack' into maint (diff) | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
download | tgif-0122cf6611f0963a7aa72592da18013c3584557e.tar.xz |
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1:
process_{tree,blob}: Remove useless xstrdup calls
-rw-r--r-- | list-objects.c | 2 | ||||
-rw-r--r-- | reachable.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/list-objects.c b/list-objects.c index c8b8375e49..dd243c7c66 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 3b1c18ff9b..b515fa2de3 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; |