The merge type is a per repository setting. Add it to the edit page.
gb.body = body
gb.mergeSha = mergeSha
gb.mergeTo = merge to
+gb.mergeType = merge type
gb.labels = labels
gb.reviewers = reviewers
gb.voters = voters
gb.serverDoesNotAcceptPatchsets = This server does not accept patchsets.
gb.ticketIsClosed = This ticket is closed.
gb.mergeToDescription = default integration branch for merging ticket patchsets
+gb.mergeTypeDescription = merge a ticket fast-forward only, if necessary, or always with a merge commit to the integration branch
gb.anonymousCanNotPropose = Anonymous users can not propose patchsets.
gb.youDoNotHaveClonePermission = You are not permitted to clone this repository.
gb.myTickets = my tickets
gb.permission = Permission
gb.sshKeyPermissionDescription = Specify the access permission for the SSH key
gb.transportPreference = Transport Preference
-gb.transportPreferenceDescription = Set the transport that you prefer to use for cloning
\ No newline at end of file
+gb.transportPreferenceDescription = Set the transport that you prefer to use for cloning
<div wicket:id="acceptNewTickets"></div>\r
<div wicket:id="requireApproval"></div>\r
<div wicket:id="mergeTo"></div>\r
- \r
+ <div wicket:id="mergeType"></div>\r
+\r
</div>\r
\r
<!-- federation -->\r
import com.gitblit.Constants.AuthorizationControl;\r
import com.gitblit.Constants.CommitMessageRenderer;\r
import com.gitblit.Constants.FederationStrategy;\r
+import com.gitblit.Constants.MergeType;\r
import com.gitblit.Constants.RegistrantType;\r
import com.gitblit.GitBlitException;\r
import com.gitblit.Keys;\r
getString("gb.mergeToDescription"),\r
new PropertyModel<String>(repositoryModel, "mergeTo"),\r
availableBranches));\r
+ form.add(new ChoiceOption<MergeType>("mergeType",\r
+ getString("gb.mergeType"),\r
+ getString("gb.mergeTypeDescription"),\r
+ new PropertyModel<MergeType>(repositoryModel, "mergeType"),\r
+ Arrays.asList(MergeType.values())));\r
\r
//\r
// RECEIVE\r