From 5cd1fdeb9ee1af1179a859dc5ed65561bfe5a6d6 Mon Sep 17 00:00:00 2001 From: mharinder Date: Sun, 1 Oct 2017 05:37:24 -0700 Subject: pull: add an option to use rebase for merging pull requests For DVCS, either merge or rebase works for getting new code in a pull request in the main branch. The rebase workflow produces a linear history which is cleaner, and more bisect-able. This commit adds a repo-level option to enable the rebase workflow. Once enabled, "Merge Pull Request" will be replaced by "Rebase and Merge Pull Request" which does exactly what the user wants. It's unlikely a project wants a mixed-use of both rebase and merge workflows, therefore the feature is not implemented as a drop-down button like what GitHub does (https://github.com/blog/2243-rebase-and-merge-pull-requests). --- templates/repo/issue/view_content.tmpl | 6 +++++- templates/repo/settings/options.tmpl | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 88f66ef9..f9cf63bf 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -196,7 +196,11 @@
{{.CSRFTokenHTML}}
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 0e3256a9..7d3d58d3 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -193,10 +193,16 @@
- +
+
+
+ + +
+
{{end}}
-- cgit v1.2.3