diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-08-15 23:19:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-27 23:48:28 -0700 |
commit | a005085240ef77ac0dde8eb08e27c6ef868d4bab (patch) | |
tree | 6f1a05ea146ed26c6229b972cf13e1d9230e37ec /t/t5515/fetch.br-branches-default_branches-default | |
parent | git --bare cmd: do not unconditionally nuke GIT_DIR (diff) | |
download | tgif-a005085240ef77ac0dde8eb08e27c6ef868d4bab.tar.xz |
git-merge: do up-to-date check also for all strategies
This clarifies the logic to omit fast-forward check and omit
trivial merge before running the specified strategy.
The "index_merge" variable started out as a flag to say "do not
do anything clever", but when recursive was changed to skip the
trivial merge, the semantics were changed and the variable alone
does not make sense anymore.
This splits the variable into two, allow_fast_forward (which is
almost always true, and avoids making a merge commit when the
other commit is a descendant of our branch, but is set to false
for ours and subtree) and allow_trivial_merge (which is false
for ours, recursive and subtree).
Unlike the earlier implementation, the "ours" strategy allows an
up-to-date condition. When we are up-to-date, the result will
be our commit, and by definition, we will have our tree as the
result.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-branches-default_branches-default')
0 files changed, 0 insertions, 0 deletions