Merge branch 'maint'

* maint:
  git-for-each-ref.txt: minor improvements
  name-rev: Fix segmentation fault when using --all
This commit is contained in:
Junio C Hamano
2008-06-06 09:21:48 -07:00
2 changed files with 15 additions and 10 deletions

View File

@ -280,9 +280,13 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
int i, max;
max = get_max_object_index();
for (i = 0; i < max; i++)
show_name(get_indexed_object(i), NULL,
for (i = 0; i < max; i++) {
struct object *obj = get_indexed_object(i);
if (!obj)
continue;
show_name(obj, NULL,
always, allow_undefined, data.name_only);
}
} else {
int i;
for (i = 0; i < revs.nr; i++)