Skip to contentSkip to conversation

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

PATCH In review Nanako Shiraishi 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builtin-merge-recursive.c: make merge_recursive() static

This function is not used by any other file.

---
 builtin-merge-recursive.c |    2 +-
 merge-recursive.h         |    7 -------
 2 files changed, 1 insertions(+), 8 deletions(-)
builtin-merge-recursive.c +1 -1
index 1ab1945..553aa16 100644
@@ -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,
merge-recursive.h +0 -7
index f37630a..8924371 100644
@@ -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,
Signature · 5 lines
1.5.6.3

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
#1 lore raw

Hi,

Quoted 1 line · Nanako Shiraishi

This function is not used by any other file.

And I thought it would be, in a future version of builtin-merge...

Of course, we could apply this patch now, and revert it later, increasing your commit count in the process :-)

Ciao,
Dscho

#2 lore raw
Quoted 2 lines · Johannes Schindelin

Of course, we could apply this patch now, and revert it later, increasing your commit count in the process :-)

Heh, don't tempt people, especially when we would have an interesting set of tools for statistics just around the corner ;-)