jesseduffield / jesseduffield/lazygit

Improve reusing old commit messages

Open
#3,567 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
In the commit summary window, I can press `` and `` (the arrow keys) to cycle between old commit messages. I use this feature a lot when making "save points" in my notes that I keep for work in a git repository, as well as my dotfiles config.

This works well, but sometimes I mix these repeated commits and new ones. Here is an example where I keep updating my neovim (text editor) plugin lock file:

![image](https://github.com/jesseduffield/lazygit/assets/300791/6e23b2a2-915f-4a0d-889f-894e9bbd8ee9)

**Describe the solution you'd like**
When I am in the commit summary window and press ``, let's somehow highlight the commit message whose message has been repeated.

Here, the matching commit message could be highlighted so what the next commit message is going to be I know when I press `` again to scroll further back the history:

image

**Describe alternatives you've considered**
Another way to do this could be to show the next + previous message summaries in the Commit summary window itself. This might be a better option if the Commits pane is not visible.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.