mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Merge branch 'jc/maint-name-rev-all' into maint-1.7.6
* jc/maint-name-rev-all: name-rev --all: do not even attempt to describe non-commit object
This commit is contained in:
commit
43176d1e4c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue