Skip to content

Commit bc69776

Browse files
committed
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: State the effect of filter-branch on graft explicitly process_{tree,blob}: Remove useless xstrdup calls
2 parents f7af757 + c6d8f76 commit bc69776

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Documentation/git-filter-branch.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ changes, which would normally have no effect. Nevertheless, this may be
3131
useful in the future for compensating for some git bugs or such,
3232
therefore such a usage is permitted.
3333

34+
*NOTE*: This command honors `.git/info/grafts`. If you have any grafts
35+
defined, running this command will make them permanent.
36+
3437
*WARNING*! The rewritten history will have different object names for all
3538
the objects and will not converge with the original branch. You will not
3639
be able to easily push and distribute the rewritten branch on top of the

builtin-pack-objects.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,8 @@ static void show_object(struct object_array_entry *p)
19051905
add_preferred_base_object(p->name);
19061906
add_object_entry(p->item->sha1, p->item->type, p->name, 0);
19071907
p->item->flags |= OBJECT_ADDED;
1908+
free((char *)p->name);
1909+
p->name = NULL;
19081910
}
19091911

19101912
static void show_edge(struct commit *commit)

0 commit comments

Comments
 (0)