Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-name-rev-all' into maint-1.7.6
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Dec 2011 05:12:34 +0000
(21:12 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Dec 2011 05:12:34 +0000
(21:12 -0800)
* jc/maint-name-rev-all:
name-rev --all: do not even attempt to describe non-commit object
builtin/name-rev.c
patch
|
blob
|
history
raw
(from parent 1:
6d1cdad
)
diff --git
a/builtin/name-rev.c
b/builtin/name-rev.c
index 31f5c1c971381a9490b717e0413ee9a40260ef39..e8862b5de2e263ca0e1ccee8c69b3881816f41c5 100644
(file)
--- a/
builtin/name-rev.c
+++ b/
builtin/name-rev.c
@@
-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);