| author | Scott R Parish <srp@srparish.net> | |
| Sat, 27 Oct 2007 08:36:52 +0000 (01:36 -0700) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Tue, 30 Oct 2007 03:51:37 +0000 (20:51 -0700) | ||
| commit | 0966003c8e8d1528912b10667b903cd981e3a7f6 | |
| tree | 01f838f8d9e826d850b14d35d4b496aca86d9d23 | tree | snapshot |
| parent | 384df83312d24ea4d11adcf4e73921fc192595d2 | commit | diff |
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>
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 | diff | blob | history |