gitui-org / gitui-org/gitui

Use `git commit --verbose` when opening the external editor on a commit message

Open
#2,619 2 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Describe the solution you'd like**
Opening the external editor is actually not done by `git commit` command, so we may need to manually put the diff into the created COMMIT_EDITMSG file.

https://github.com/gitui-org/gitui/blob/e08d954573f2da5d66ace2822f439ee0b97ade34/src/popups/commit.rs#L160-L187

**Describe alternatives you've considered**
Or horner `commit.verbose` configuration variable. (#900)

**Additional context**
It would be useful to have a full diff in context when I edit commit messages in an external editor. This would allow me to benefit from completions and copilot, etc.

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.