Shawn O. Pearce  committed eea1ab6

git-gui: Simplify error case for unsupported merge types

If we are given a merge type we don't understand in checkout_op there
is probably a bug in git-gui somewhere that allowed this unknown merge
strategy to come into this part of the code path. We currently only
recognize three merge types ('none', 'ff' and 'reset') but are going
to be supporting more in the future. Rather than keep editing this
message I'm going with a very generic "Uh, we don't do that!" type of

Signed-off-by: Shawn O. Pearce <>

  • Participants
  • Parent commits f66b8a6
  • Branches master

Comments (0)

Files changed (1)

File lib/checkout_op.tcl

 			default {
-				_error $this "Only 'ff' and 'reset' merge is currently supported."
+				_error $this "Merge strategy '$merge_type' not supported."
 				return 0