summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-08-22 01:47:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-22 01:47:53 (GMT)
commitf00ecbe42b82f3c8e6a170074f2299487026e400 (patch)
treefca98c6ac1d4cde3d5e60d296b2fcae8caf7fc6b /commit.h
parent5e092b5bcea48c098af7000f888a2a0f16c9db77 (diff)
parent4e65b538acc97dd853e19a1692893f5fd47043e6 (diff)
downloadgit-f00ecbe42b82f3c8e6a170074f2299487026e400.zip
git-f00ecbe42b82f3c8e6a170074f2299487026e400.tar.gz
git-f00ecbe42b82f3c8e6a170074f2299487026e400.tar.bz2
Merge branch 'cc/replace'
* cc/replace: t6050: check pushing something based on a replaced commit Documentation: add documentation for "git replace" Add git-replace to .gitignore builtin-replace: use "usage_msg_opt" to give better error messages parse-options: add new function "usage_msg_opt" builtin-replace: teach "git replace" to actually replace Add new "git replace" command environment: add global variable to disable replacement mktag: call "check_sha1_signature" with the replacement sha1 replace_object: add a test case object: call "check_sha1_signature" with the replacement sha1 sha1_file: add a "read_sha1_file_repl" function replace_object: add mechanism to replace objects found in "refs/replace/" refs: add a "for_each_replace_ref" function
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 4886544..d1674d7 100644
--- a/commit.h
+++ b/commit.h
@@ -123,6 +123,8 @@ struct commit_graft *read_graft_line(char *buf, int len);
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);