From 213152688c85a0e4d591abc1c10b7c279ffefb99 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 10 Apr 2009 15:20:18 -0700 Subject: process_{tree,blob}: Remove useless xstrdup calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Wed, 8 Apr 2009, Björn Steinbrink wrote: > > The name of the processed object was duplicated for passing it to > add_object(), but that already calls path_name, which allocates a new > string anyway. So the memory allocated by the xstrdup calls just went > nowhere, leaking memory. Ack, ack. There's another easy 5% or so for the built-in object walker: once we've created the hash from the name, the name isn't interesting any more, and so something trivial like this can help a bit. Does it matter? Probably not on its own. But a few more memory saving tricks and it might all make a difference. Linus Signed-off-by: Junio C Hamano --- builtin-pack-objects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 84a13c7ccd..a6adc8c271 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1861,6 +1861,8 @@ static void show_object(struct object_array_entry *p) add_preferred_base_object(p->name); add_object_entry(p->item->sha1, p->item->type, p->name, 0); p->item->flags |= OBJECT_ADDED; + free((char *)p->name); + p->name = NULL; } static void show_edge(struct commit *commit) -- cgit v1.2.1 From c6d8f7635f619f6576dccf17c1f1264d2cc37a2a Mon Sep 17 00:00:00 2001 From: "Daniel Cheng (aka SDiZ)" Date: Fri, 10 Apr 2009 14:26:49 +0800 Subject: State the effect of filter-branch on graft explicitly Signed-off-by: Daniel Cheng (aka SDiZ) Signed-off-by: Junio C Hamano --- Documentation/git-filter-branch.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index b0e710d5f9..7747c4877d 100644 --- a/Documentation/git-filter-branch.txt +++ b/Documentation/git-filter-branch.txt @@ -31,6 +31,9 @@ changes, which would normally have no effect. Nevertheless, this may be useful in the future for compensating for some git bugs or such, therefore such a usage is permitted. +*NOTE*: This command honors `.git/info/grafts`. If you have any grafts +defined, running this command will make them permanent. + *WARNING*! The rewritten history will have different object names for all the objects and will not converge with the original branch. You will not be able to easily push and distribute the rewritten branch on top of the -- cgit v1.2.1 From 3bd1bb327eb4d3e386800897734f9f42b48280ff Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 12 Apr 2009 15:43:24 -0700 Subject: GIT 1.6.2.3 Signed-off-by: Junio C Hamano --- Documentation/RelNotes-1.6.2.3.txt | 6 ------ GIT-VERSION-GEN | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Documentation/RelNotes-1.6.2.3.txt b/Documentation/RelNotes-1.6.2.3.txt index 6560593fd5..4d3c1ac91c 100644 --- a/Documentation/RelNotes-1.6.2.3.txt +++ b/Documentation/RelNotes-1.6.2.3.txt @@ -20,9 +20,3 @@ Fixes since v1.6.2.2 to prevent them from being repacked. Many small documentation updates are included as well. - ---- -exec >/var/tmp/1 -echo O=$(git describe maint) -O=v1.6.2.2-41-gbff82d0 -git shortlog --no-merges $O..maint diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index ac2f24795c..04713fc7c9 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.6.2.2 +DEF_VER=v1.6.2.3 LF=' ' -- cgit v1.2.1