git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] use declarations from builtin.h for builtin commands

From
Matthias Kestenholz <matthias@spinlock.ch>
Date
Aug 2, 2006, 21:52 UTC
Message-ID
<1154555520792-git-send-email-matthias@spinlock.ch>
In-Reply-To
<11545555203975-git-send-email-matthias@spinlock.ch>
Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
---
 builtin-fmt-merge-msg.c |    3 ++-
 builtin-prune-packed.c  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/builtin-fmt-merge-msg.c b/builtin-fmt-merge-msg.c
index c84224e..485ede7 100644
--- a/builtin-fmt-merge-msg.c
+++ b/builtin-fmt-merge-msg.c
@@ -1,3 +1,4 @@
+#include "builtin.h"
 #include "cache.h"
 #include "commit.h"
 #include "diff.h"
@@ -242,7 +243,7 @@ static void shortlog(const char *name, u
 	free_list(&subjects);
 }
 
-int cmd_fmt_merge_msg(int argc, char **argv, const char *prefix)
+int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
 {
 	int limit = 20, i = 0;
 	char line[1024];
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c
index d0ff336..d3dd94d 100644
--- a/builtin-prune-packed.c
+++ b/builtin-prune-packed.c
@@ -1,3 +1,4 @@
+#include "builtin.h"
 #include "cache.h"
 
 static const char prune_packed_usage[] =
@@ -54,7 +55,7 @@ static void prune_packed_objects(void)
 	}
 }
 
-int cmd_prune_packed(int argc, char **argv, const char *prefix)
+int cmd_prune_packed(int argc, const char **argv, const char *prefix)
 {
 	int i;
 
-- 
1.4.2.rc2.g93b2c
Previous: Matthias Kestenholz
Message 2 of 2 in “Make git-repo-config a builtin”
  1. Make git-repo-config a builtinMatthias Kestenholz, Aug 2, 2006
  2. use declarations from builtin.h for builtin commandsMatthias Kestenholz, Aug 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.