Code

revision.c: add show_object_with_name() helper function
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Aug 2011 21:30:34 +0000 (14:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Aug 2011 18:34:55 +0000 (11:34 -0700)
commit91f175165aba17903ab928da543052ea335fc924
tree6cf82414eee956998260894e995f621e8892e818
parent5f25b6299d3e9853cf1f43734228d6e25d8f3415
revision.c: add show_object_with_name() helper function

There are two copies of traverse_commit_list callback that show the object
name followed by pathname the object was found, to produce output similar
to "rev-list --objects".

Unify them.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c
revision.c
revision.h
upload-pack.c