jesseduffield / jesseduffield/lazygit
Lazy suggestion
- 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.**
Some days i'm just too lazy to write good commit messages if it's not necessary important to do so but to be honest it would be nice if even the lazy commit messages can be somewhat informative without having to think about them.
Or when you have a shitload of changes i'm usually too lazy to write commit message for every group of files changed but it would be nice if it was possible.
**Describe the solution you'd like**
Sooo what if lazygit would give suggestions based on the files changed in an extra tab under files.
Here are some things it could suggest based on changed git files:
| In select | In the big view | detect based on |
|---|---|---|
| Commit dependency updates | The files that will be committed and the commit message that will be used | if updated go.mod and go.sum (and vendor) |
| Remove binary from prev commits | all commits that will be effected by this change | removed binary file, probably was a mistake committed |
| Commit new react component | The files that will be committed and the commit message that will be used | in a components folder a new folder or file was added with tsx or js or jsx extension |
| Commit updated readme | The files that will be committed and the commit message that will be used | readme changed |
| Init commit | The files that will be committed and the commit message that will be used | this would be the first commit |
| Renamed component x or Renamed package x | The files that will be committed and the commit message that will be used | if a component folder or file is renamed |
And i could go on forever giving suggestions.
It could start with small things like above but it if we want it could also do more advanced things like discard debug logging in certain languages or suggest to only commit the code changes in 1 file without all the logging if it has a shitload of logging.
**Describe alternatives you've considered**
Git aliases
**Additional context**
none
Contributor guide
Assessment
This issue has not been assessed yet.