summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e3aa87)
raw | patch | inline | side by side (parent: 4e3aa87)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 May 2011 19:54:50 +0000 (12:54 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 May 2011 22:23:31 +0000 (15:23 -0700) |
The declaration is misplaced as the replace API is supposed to affect
not just commits, but all types of objects.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
not just commits, but all types of objects.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history | |
commit.h | patch | blob | history |
index 2b341166241c7be98fb1012871266ebb910e1226..e09cf7501363c337bf9719c41485f12a0ef564a3 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -763,6 +763,7 @@ static inline void *read_sha1_file(const unsigned char *sha1, enum object_type *
{
return read_sha1_file_repl(sha1, type, size, NULL);
}
+extern const unsigned char *lookup_replace_object(const unsigned char *sha1);
extern int hash_sha1_file(const void *buf, unsigned long len, const char *type, unsigned char *sha1);
extern int write_sha1_file(const void *buf, unsigned long len, const char *type, unsigned char *return_sha1);
extern int pretend_sha1_file(void *, unsigned long, enum object_type, unsigned char *);
diff --git a/commit.h b/commit.h
index b3c3bb70c5e737ed18df7ca665c85e339e1f3292..f251e75a5b4c4bf9064f53ae57b6613ff07349e6 100644 (file)
--- a/commit.h
+++ b/commit.h
int register_commit_graft(struct commit_graft *, int);
struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
-const unsigned char *lookup_replace_object(const unsigned char *sha1);
-
extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup);
extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos, int cleanup);
extern struct commit_list *get_octopus_merge_bases(struct commit_list *in);