diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:55:05 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 12:55:05 -0800 |
commit | 098501527f2b5628f086d3d9d2fda87220c069a5 (patch) | |
tree | d5874ea1c3185a6baa71719ff20e89ad57e53b46 /builtin/merge.c | |
parent | 58e0362eddba1678a71c8990862053ff989527b6 (diff) | |
parent | 2ce406ccb85c4546b6d19309a6101b37c7bd952e (diff) | |
download | git-098501527f2b5628f086d3d9d2fda87220c069a5.tar.gz git-098501527f2b5628f086d3d9d2fda87220c069a5.tar.xz |
Merge branch 'jc/merge-bases'
The get_merge_bases*() API was easy to misuse by careless
copy&paste coders, leaving object flags tainted in the commits that
needed to be traversed.
* jc/merge-bases:
get_merge_bases(): always clean-up object flags
bisect: clean flags after checking merge bases
Diffstat (limited to 'builtin/merge.c')
-rw-r--r-- | builtin/merge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index 215d4856e..9effed7ff 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -1312,7 +1312,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix) if (!remoteheads) ; /* already up-to-date */ else if (!remoteheads->next) - common = get_merge_bases(head_commit, remoteheads->item, 1); + common = get_merge_bases(head_commit, remoteheads->item); else { struct commit_list *list = remoteheads; commit_list_insert(head_commit, &list); @@ -1409,7 +1409,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix) * merge_bases again, otherwise "git merge HEAD^ * HEAD^^" would be missed. */ - common_one = get_merge_bases(head_commit, j->item, 1); + common_one = get_merge_bases(head_commit, j->item); if (hashcmp(common_one->item->object.sha1, j->item->object.sha1)) { up_to_date = 0; |