Skip to content

Commit

Permalink
Merge branch 'jc/maint-name-rev-all' into maint-1.7.6
Browse files Browse the repository at this point in the history
* jc/maint-name-rev-all:
  name-rev --all: do not even attempt to describe non-commit object
  • Loading branch information
gitster committed Dec 14, 2011
2 parents 6d1cdad + e8b14d7 commit 43176d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/name-rev.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
max = get_max_object_index();
for (i = 0; i < max; i++) {
struct object *obj = get_indexed_object(i);
if (!obj)
if (!obj || obj->type != OBJ_COMMIT)
continue;
show_name(obj, NULL,
always, allow_undefined, data.name_only);
Expand Down

0 comments on commit 43176d1

Please sign in to comment.