You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When displaying a commit object, vim-fugitive calls git show with a pretty format that imitates what git cat-file commit shows: it includes the tree hash, parent hash, author info, and committer info.
My feature request is to add the commit hash to the pretty format, and ideally also the ref description.
Justification: when viewing info about a commit, I'd like easy access to which commit I'm looking at. I might want to yank the commit hash to use elsewhere, for example.
I'm happy to submit a PR for this if you'll accept it. The PR will do 2 things:
add commit%x20%H%d%n to the start of the pretty format
replace git cat-file commit <rev> with a modified git show command in the code branch for when b:fugitive_display_format is set, so that the format will still match when pressing a or i
I'm testing this locally and it seems to work fine. I can keep it as a local patch I suppose if you don't think this feature will benefit other users.
The text was updated successfully, but these errors were encountered:
jbyler
pushed a commit
to jbyler/vim-fugitive
that referenced
this issue
Sep 27, 2023
When displaying a commit, add a new line showing the commit hash and refs
description.
Also switches from using `git cat-file commit` to using `git show --no-patch`
for the short form toggled with `a` or `i` to keep the format consistent.
jbyler
changed the title
Include commit hash when showing a commit
Feature Reqeust: Include commit hash when showing a commit
Sep 27, 2023
jbyler
changed the title
Feature Reqeust: Include commit hash when showing a commit
[Feature Reqeust] Include commit hash when showing a commit
Sep 27, 2023
jbyler
changed the title
[Feature Reqeust] Include commit hash when showing a commit
[Feature Request] Include commit hash when showing a commit
Sep 27, 2023
When displaying a commit object, vim-fugitive calls
git show
with a pretty format that imitates whatgit cat-file commit
shows: it includes the tree hash, parent hash, author info, and committer info.My feature request is to add the commit hash to the pretty format, and ideally also the ref description.
Justification: when viewing info about a commit, I'd like easy access to which commit I'm looking at. I might want to yank the commit hash to use elsewhere, for example.
I'm happy to submit a PR for this if you'll accept it. The PR will do 2 things:
commit%x20%H%d%n
to the start of the pretty formatgit cat-file commit <rev>
with a modifiedgit show
command in the code branch for whenb:fugitive_display_format
is set, so that the format will still match when pressinga
ori
I'm testing this locally and it seems to work fine. I can keep it as a local patch I suppose if you don't think this feature will benefit other users.
The text was updated successfully, but these errors were encountered: