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
This commit is contained in:
Junio C Hamano 2009-04-12 15:20:29 -07:00
Родитель f7af75777f c6d8f7635f
Коммит bc69776aa1
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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, useful in the future for compensating for some git bugs or such,
therefore such a usage is permitted. 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 *WARNING*! The rewritten history will have different object names for all
the objects and will not converge with the original branch. You will not 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 be able to easily push and distribute the rewritten branch on top of the

Просмотреть файл

@ -1905,6 +1905,8 @@ static void show_object(struct object_array_entry *p)
add_preferred_base_object(p->name); add_preferred_base_object(p->name);
add_object_entry(p->item->sha1, p->item->type, p->name, 0); add_object_entry(p->item->sha1, p->item->type, p->name, 0);
p->item->flags |= OBJECT_ADDED; p->item->flags |= OBJECT_ADDED;
free((char *)p->name);
p->name = NULL;
} }
static void show_edge(struct commit *commit) static void show_edge(struct commit *commit)