summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b74d75)
raw | patch | inline | side by side (parent: 8b74d75)
author | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Mar 2010 20:34:41 +0000 (21:34 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Mar 2010 07:58:46 +0000 (23:58 -0800) |
and also export it in "cache.h".
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge.c | patch | blob | history | |
cache.h | patch | blob | history |
diff --git a/builtin-merge.c b/builtin-merge.c
index 3aaec7bed76af9efdfe5647be0da64373db2011e..c043066845e03e47093f88ca0b01c7bdef7bffdd 100644 (file)
--- a/builtin-merge.c
+++ b/builtin-merge.c
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;
index d454b7e686d6461162a85ef9c5f752eea401f51a..3cce9077cc0c27fba6621f933de284e1dec85c9b 100644 (file)
--- a/cache.h
+++ b/cache.h
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 */