summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-07 17:57:46 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-07 17:57:46 -0700
commit45fa7608bd1abd4dca12b0b90a852e7a71377381 (patch)
tree8cb0bf6b3cf363f3f9c1af2f37907d2e86165443 /commit.h
parentd69dc373cbf58d88d19dcbc6cff37e12b17f8fd2 (diff)
parent5040f17eba15504bad66b14a645bddd9b015ebb7 (diff)
downloadgit-45fa7608bd1abd4dca12b0b90a852e7a71377381.tar.gz
Merge branch 'jc/blame'
* jc/blame: blame -S <ancestry-file> Match ofs/cnt types in diff interface. blame: use built-in xdiff combine-diff: move the code to parse hunk-header into common library. combine-diff: refactor built-in xdiff interface. combine-diff: use built-in xdiff.
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 98682b232a..918c9ab5e4 100644
--- a/commit.h
+++ b/commit.h
@@ -90,4 +90,15 @@ void sort_in_topological_order(struct commit_list ** list, int lifo);
void sort_in_topological_order_fn(struct commit_list ** list, int lifo,
topo_sort_set_fn_t setter,
topo_sort_get_fn_t getter);
+
+struct commit_graft {
+ unsigned char sha1[20];
+ int nr_parent;
+ unsigned char parent[FLEX_ARRAY][20]; /* more */
+};
+
+struct commit_graft *read_graft_line(char *buf, int len);
+int register_commit_graft(struct commit_graft *, int);
+int read_graft_file(const char *graft_file);
+
#endif /* COMMIT_H */