Skip to content

git's log.showSignature config set to true breaks file history and git graph #53604

@Gattocrucco

Description

@Gattocrucco

Reproduction steps

$ cd SomeGitRepo  # a repo where there are signed commits
$ git config --local log.showSignature true
$ git log  # check that there are signed commits
$ zed -n .

Then:

  • open file history for a file
  • notice the commit hashes are replaced by signatures
  • try to click on a commit to show the diff, it won't work
  • open git graph
  • click on a commit, it will show 0 changed files
  • double-click on a commit
  • click on the "Commit SHA" copy button
  • paste somewhere---it's wrong

Current vs. Expected behavior

Current behavior:

  1. In the file history view, the signature replaces the commit hash
Image
  1. In the file history view, clicking on the commit does not jump to a diff of the commit

  2. In the git graph view, the commit pane erroneously shows 0 changed files

Image
  1. In the git graph view, double clicking on the commit leads a to a single-commit visualization with missing diff and where the "Commit SHA" copy button copies the signature to the pasteboard
Image

Expected behavior:

  1. File history shows commit hashes
Image
  1. Clicking on a commit in file history leads to a single-commit visualization

  2. In the git graph view, clicking on a commit shows a pane with the count of changed files

Image
  1. In the git graph view, double-clicking on a commit leads to a single-commit visualization with a diff and correct hash copy button
Image

Zed version and system specs

Zed: v0.231.2+stable.221.cc335b70f85a17974a4c61f852dbebff8c4b1db7 (Zed)
OS: macOS 26.3.1
Memory: 16 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions