You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge message template support for rebase without merge commit (#22669)
Use `default_merge_message/REBASE_TEMPLATE.md` for amending the message
of the last commit in the list of commits that was merged. Previously
this template was mentioned in the documentation but not actually used.
In this template additional variables `CommitTitle` and `CommitBody` are
available, for the title and body of the commit.
Ideally the message of every commit would be updated using the template,
but doing an interactive rebase or merging commits one by one is
complicated, so that is left as a future improvement.
Copy file name to clipboardExpand all lines: docs/content/doc/usage/merge-message-templates.en-us.md
+7
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,10 @@ You can use the following variables enclosed in `${}` inside these templates whi
48
48
- PullRequestIndex: Pull request's index number
49
49
- PullRequestReference: Pull request's reference char with index number. i.e. #1, !2
50
50
- ClosingIssues: return a string contains all issues which will be closed by this pull request i.e. `close #1, close #2`
51
+
52
+
## Rebase
53
+
54
+
When rebasing without a merge commit, `REBASE_TEMPLATE.md` modifies the message of the last commit. The following additional variables are available in this template:
0 commit comments