diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-11 20:35:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-11 20:36:05 +0200 |
commit | 34f5130af84f7a37fba327d5a5be4f4427dc6886 (patch) | |
tree | 1f8836fe7fb70566e31b3f4f5d1475fabd95981b /commit.h | |
parent | Merge branch 'nd/i18n-index-pack' (diff) | |
parent | reduce_heads(): reimplement on top of remove_redundant() (diff) | |
download | git-34f5130af84f7a37fba327d5a5be4f4427dc6886.tar.xz git-34f5130af84f7a37fba327d5a5be4f4427dc6886.zip |
Merge branch 'jc/merge-bases'
Optimise the "merge-base" computation a bit, and also update its
users that do not need the full merge-base information to call a
cheaper subset.
* jc/merge-bases:
reduce_heads(): reimplement on top of remove_redundant()
merge-base: "--is-ancestor A B"
get_merge_bases_many(): walk from many tips in parallel
in_merge_bases(): use paint_down_to_common()
merge_bases_many(): split out the logic to paint history
in_merge_bases(): omit unnecessary redundant common ancestor reduction
http-push: use in_merge_bases() for fast-forward check
receive-pack: use in_merge_bases() for fast-forward check
in_merge_bases(): support only one "other" commit
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -171,7 +171,7 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads, int depth, int shallow_flag, int not_shallow_flag); int is_descendant_of(struct commit *, struct commit_list *); -int in_merge_bases(struct commit *, struct commit **, int); +int in_merge_bases(struct commit *, struct commit *); extern int interactive_add(int argc, const char **argv, const char *prefix, int patch); extern int run_add_interactive(const char *revision, const char *patch_mode, |