Skip to content

Commit cac42b2

Browse files
committed
builtin/merge: make checkout_fast_forward() non static
and also export it in "cache.h". Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8b74d75 commit cac42b2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

builtin-merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static int count_unmerged_entries(void)
667667
return ret;
668668
}
669669

670-
static int checkout_fast_forward(unsigned char *head, unsigned char *remote)
670+
int checkout_fast_forward(const unsigned char *head, const unsigned char *remote)
671671
{
672672
struct tree *trees[MAX_UNPACK_TREES];
673673
struct unpack_trees_options opts;

cache.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,4 +1040,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix);
10401040
char *alias_lookup(const char *alias);
10411041
int split_cmdline(char *cmdline, const char ***argv);
10421042

1043+
/* builtin/merge.c */
1044+
int checkout_fast_forward(const unsigned char *from, const unsigned char *to);
1045+
10431046
#endif /* CACHE_H */

0 commit comments

Comments
 (0)