summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f08e5c)
raw | patch | inline | side by side (parent: 1f08e5c)
author | Alex Riesen <raa.lkml@gmail.com> | |
Thu, 28 Aug 2008 17:19:42 +0000 (19:19 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 29 Aug 2008 04:51:34 +0000 (21:51 -0700) |
Even if it always needed
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | patch | blob | history |
index ab2c2ba2605d93db3388da491faf7968112685eb..b278257aab15f7a195dd4f3c234b3e6b68aaa8f3 100644 (file)
--- a/help.c
+++ b/help.c
void list_commands(const char *title, struct cmdnames *main_cmds,
struct cmdnames *other_cmds)
{
- const char *exec_path = git_exec_path();
int i, longest = 0;
for (i = 0; i < main_cmds->cnt; i++)
longest = other_cmds->names[i]->len;
if (main_cmds->cnt) {
+ const char *exec_path = git_exec_path();
printf("available %s in '%s'\n", title, exec_path);
printf("----------------");
mput_char('-', strlen(title) + strlen(exec_path));