Skip to content

Rebases and Merges in the Topic Activity

When a topic branch is rebased onto a release, or a release is merged into it, the next push brings to the branch every commit of the release that the branch did not have yet, sometimes hundreds of them. Clarive tells those commits apart from the commits of the branch itself, so the activity of the topic stays short.

What the activity shows

Instead of one "New commit in branch:" line for each commit the push brought, the topic activity shows a single line such as:

Rebased with release/7.24 (296 commits)

or "Merged with" when the base branch was merged into the topic branch. The line links to the commit log of the branches and to the new head commit. Below it come only the commits of the topic branch itself.

Rules on the Topic Revisions Updated event get the same list: only the commits of the branch, plus a rebase value with the base branch (onto), the kind (rebase or merge) and the number of commits it brought (count).

Activity entries saved before Clarive 7.24 are shown as they were.

Base branches

Clarive treats the commits as brought from a base branch when that branch already had them. The base branches are:

  • the default branch of the repository;
  • the production branch of the project;
  • the branches whose name matches the config.git.base_branches key.

When several base branches had the commits, Clarive names the one whose head is closest to them, and prefers a release branch to the main line when both are at the same commit.

config.git.base_branches

A regular expression matched against the branch names. Its default value is:

^(?:master|main|develop|release/.+)$

Change it in the Config Table when your base branches follow another naming, for example to add support/ branches:

config.git.base_branches: ^(?:master|main|develop|release/.+|support/.+)$

An empty value or an invalid regular expression falls back to the default.