list_commands(): simplify code by using chdir()
authorScott R Parish <srp@srparish.net>
Sat, 27 Oct 2007 08:36:52 +0000 (01:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Oct 2007 03:51:37 +0000 (20:51 -0700)
commit0966003c8e8d1528912b10667b903cd981e3a7f6
tree01f838f8d9e826d850b14d35d4b496aca86d9d23
parent384df83312d24ea4d11adcf4e73921fc192595d2
list_commands(): simplify code by using chdir()

The current code builds absolute path strings for each file to
stat(), this can easily be avoided by chdir()ing into the directory.

Signed-off-by: Scott R Parish <srp@srparish.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c