Skip to content

Commit

Permalink
builtin/merge: make checkout_fast_forward() non static
Browse files Browse the repository at this point in the history
and also export it in "cache.h".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Mar 7, 2010
1 parent 8b74d75 commit cac42b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ static int count_unmerged_entries(void)
return ret;
}

static int checkout_fast_forward(unsigned char *head, unsigned char *remote)
int checkout_fast_forward(const unsigned char *head, const unsigned char *remote)
{
struct tree *trees[MAX_UNPACK_TREES];
struct unpack_trees_options opts;
Expand Down
3 changes: 3 additions & 0 deletions cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -1040,4 +1040,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix);
char *alias_lookup(const char *alias);
int split_cmdline(char *cmdline, const char ***argv);

/* builtin/merge.c */
int checkout_fast_forward(const unsigned char *from, const unsigned char *to);

#endif /* CACHE_H */

0 comments on commit cac42b2

Please sign in to comment.