Merge branch 'maint-1.6.1' into maint
authorJunio C Hamano <gitster@pobox.com>
Sun, 12 Apr 2009 22:34:53 +0000 (15:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 12 Apr 2009 22:34:53 +0000 (15:34 -0700)
* maint-1.6.1:
State the effect of filter-branch on graft explicitly
process_{tree,blob}: Remove useless xstrdup calls

Documentation/git-filter-branch.txt
builtin-pack-objects.c
index 7ffe03f4279a8ca8110806260f33a58f849351e4..c1193953a128201be821538176c1fd666950afb3 100644 (file)
@@ -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
index 9fc3b355470466bd5663e1fca1fe759e18869ee2..6cf5b86e15bd01d03aad4c3476a005923542a6f3 100644 (file)
@@ -1912,6 +1912,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)