Skip to content

Add setting to optionally show commit body inline in graph#25

Open
Pwuts wants to merge 4 commits intogit-hub-tig:masterfrom
Pwuts:fix/show-commit-body-inline-setting
Open

Add setting to optionally show commit body inline in graph#25
Pwuts wants to merge 4 commits intogit-hub-tig:masterfrom
Pwuts:fix/show-commit-body-inline-setting

Conversation

@Pwuts
Copy link
Copy Markdown

@Pwuts Pwuts commented Mar 18, 2026

Summary

  • Adds a new setting git-graph.repository.showCommitBodyInline (default: true) that controls whether the commit body (message after the first line) is displayed alongside the subject in the graph table
  • When disabled, only the commit subject/title is shown, matching the original Git Graph extension's behavior
  • When enabled (default), the full commit message (subject + body) is shown inline, preserving the current behavior

Fixes #18

Test plan

  • Open Git Graph with default settings → commit body should appear alongside the subject (current behavior)
  • Disable git-graph.repository.showCommitBodyInline in settings → only commit subjects should be shown
  • Verify commits without a body are unaffected in both modes

🤖 Generated with Claude Code

Pwuts and others added 4 commits March 18, 2026 13:30
The commit body (message after the first line) was always shown inline
in the graph table, cluttering the view. This adds a new setting
`git-graph.repository.showCommitBodyInline` (default: false) that
controls whether the commit body is displayed alongside the subject.

Fixes git-hub-tig#18

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Renamed setting from `git-graph.repository.showCommitBodyInline` to
`git-graph.repository.commits.showBodyInline` so it appears under
Git-graph › Repository › Commits in the settings UI.

Also fixed a pre-existing trailing whitespace lint warning in web/main.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When showCommitBodyInline is disabled, the subject was still showing
the full message. Now it always splits on the first newline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Show only commit title in graph

1 participant