Skip to content

Use --format for the commit text in SVG output - #171

Merged
peso merged 1 commit into
git-bahn:masterfrom
mateuscmtropical:fix/svg-format
Nov 24, 2026
Merged

peso merged 1 commit into
git-bahn:masterfrom
mateuscmtropical:fix/svg-format

Conversation

@mateuscmtropical

Copy link
Copy Markdown
Contributor

Fixes #154

--svg now uses --format for the commit text when the flag is given. Without --format the output is the same as before, only the summary.

  • Each commit has one row in the SVG, so a multi-line format is joined into one line with two spaces.
  • Branch names are not passed to the format because the SVG already draws them as labels. So %d stays empty in SVG output.
  • The --svg help text and the CHANGELOG mention it.

Based on the diff from @rtaylorzfin in #154.

Tested with cargo test and cargo clippy, and by rendering a small repo with --svg, --svg -f "%h %s" and --svg -f medium.

@peso peso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing. It is good to finally get the commit text in SVG output.

@peso
peso merged commit d3abc23 into git-bahn:master Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

svg flag ignores format flag

2 participants