Desktop app / Diffs, filters and export
Diffs, filters and export
Read the diff of a changeset or a commit, narrow the history with search and filters, and export the view as Markdown, CSV or HTML.
Once you have found the right branch, three tools help you work with its history: the diff in the details pane, the search and filters that narrow the list, and the export that turns the current view into a document.
Diffs
Select a row on the History page, then open the Changes tab of the details pane. The label next to the tabs says what the diff covers:
| Selection | Label | What the diff compares |
|---|---|---|
| A merge (changeset) | What this integration changed | The branch before the merge with the merge commit: everything the integration brought in, as one combined diff. |
| A rebase-merged pull request (connected) | What this integration changed | The parent of its oldest commit with its newest commit. |
| A nested merge inside a group | What this merge brought in | The nested merge with its first parent. |
| A commit | Changes of this commit | The commit with its first parent; a root commit with an empty tree. |
The combined diff of a changeset is usually what a reviewer wants: the net effect of the feature on the branch, without the intermediate states of its commits.
Reading the diff
- The summary line counts the changed files and the added and removed lines.
- Each file is a card with a status letter: A added, M modified, D deleted, R renamed, C copied, T type changed. Renamed files show the old and the new path.
- Click a file header to collapse or expand it. With more than 25 files, all cards start collapsed; a file with more than 1,500 diff lines also starts collapsed.
- Binary files say “Binary file changed”; changes of the file mode only say “No content change (mode or rename only)”.
- A diff larger than 8 MB is cut and marked diff truncated (too large).
Message and technical details
The Message tab shows the full commit message, with Copy message. Technical details, collapsed at the bottom of the details card, lists the parents, the commit date and the committer.
Search
Press ⌘F on macOS or CtrlF on Windows and Linux (Edit › Find) to jump to the search box. The search is case-insensitive and matches:
- the subject of the changeset or of any commit inside it;
- the beginning of a SHA, of the changeset or of a commit inside it;
- the merged branch name and the pull request title;
- a pull request number, written
44or#44.
A group that matches only through its commits stays in the list with a match chip that counts the matching commits. Expand it to see them. Clear the search with the × in the box.
Filters
Click Filters in the toolbar to open the filter bar.
| Filter | What it does |
|---|---|
| Author | Name or e-mail, partial and case-insensitive. Matches the integrator, the authors of the commits inside a group and, when connected, the pull request author. |
| From, To | A date range, inclusive. Dates refer to when the change entered the branch, not to when the commits were written. |
| Hide forward-integration merges | On by default. Turn it off to see the “merge main into feature” commits inside the groups. |
| Clear filters | Resets the search and all filters. |
The Filters button shows a dot while a filter other than the search is active, and the list header adds “(filtered)” to the number of entries. In the graph, the search and the author filter dim the commits that do not match; the date filters apply to the list only.
When the repository is connected, mergecat also loads the pull request data of the entries that a filter brings into view, so that titles and branch names are complete.
Export
Click the Export button (the download icon) in the toolbar. Under Export the history, choose:
- Export as Markdown (
.md) - Export as CSV (
.csv) - Export as HTML (
.html)
The export contains the current view: the analysed branch, the ref of Compare with… and the filters. It includes every matching entry, not only the rows loaded in the list. A save dialog proposes the Documents folder and a name like changesets-<repository>-<branch>.md. The document title is “Changesets on <branch>”, or “Changes from <base> to <branch>” when you compare.
| Format | Layout | Good for |
|---|---|---|
| Markdown | One section per entry with date and title, then branch, pull request (linked when connected), integrator, SHA and number of commits, then the list of commits. | Wikis, pull request descriptions, release notes. |
| CSV | One row per commit, with the changeset it belongs to. | Spreadsheets and scripts. |
| HTML | A self-contained page with collapsible groups, light and dark theme. | Sharing by e-mail or as a file. |
The CSV columns are integration_date, entry_type, entry_sha, branch, branch_source, pr_number, pr_title, integrator, commit_sha, commit_date, author and subject. Cells that start with =, +, - or @ get a leading apostrophe, so a spreadsheet does not run them as formulas.
To document a release, open the history up to the release tag, choose the previous release in Compare with… and export: you get every change of the release, grouped by integration. See Compare and trace commits.
Audit report
The same Export menu has Audit report…, also available as the Audit button and File › Audit Report…. Unlike the export, the audit report says who approved each change, its risk factors and the environments that run it, and it can cover the current view, two releases, two environments or what is not yet in an environment.
Change audit
The report comes in HTML, Markdown, CSV and JSON and carries a SHA-256 fingerprint of its content. Approvals come from the hosting service: without a connection they are reported as unknown. See Change audit reports.