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

[PATCH] builtin-merge-recursive.c: make merge_recursive() static

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Jul 20, 2008, 10:21 UTC
Message-ID
<20080720192127.6117@nanako3.lavabit.com>
This function is not used by any other file.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
 builtin-merge-recursive.c |    2 +-
 merge-recursive.h         |    7 -------
 2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/builtin-merge-recursive.c b/builtin-merge-recursive.c
index 1ab1945..553aa16 100644
--- a/builtin-merge-recursive.c
+++ b/builtin-merge-recursive.c
@@ -1247,7 +1247,7 @@ static struct commit_list *reverse_commit_list(struct commit_list *list)
  * Merge the commits h1 and h2, return the resulting virtual
  * commit object and a flag indicating the cleanness of the merge.
  */
-int merge_recursive(struct commit *h1,
+static int merge_recursive(struct commit *h1,
 		    struct commit *h2,
 		    const char *branch1,
 		    const char *branch2,
diff --git a/merge-recursive.h b/merge-recursive.h
index f37630a..8924371 100644
--- a/merge-recursive.h
+++ b/merge-recursive.h
@@ -1,13 +1,6 @@
 #ifndef MERGE_RECURSIVE_H
 #define MERGE_RECURSIVE_H
 
-int merge_recursive(struct commit *h1,
-		    struct commit *h2,
-		    const char *branch1,
-		    const char *branch2,
-		    struct commit_list *ancestors,
-		    struct commit **result);
-
 int merge_trees(struct tree *head,
 		struct tree *merge,
 		struct tree *common,
-- 
1.5.6.3

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Next: Johannes Schindelin
Message 1 of 3 in “builtin-merge-recursive.c: make merge_recursive() static”
  1. builtin-merge-recursive.c: make merge_recursive() staticNanako Shiraishi, Jul 20, 2008
  2. Johannes SchindelinJul 20, 2008
  3. Junio C HamanoJul 22, 2008

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.