1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Better prompt for discarding old file changes

Lazygit knows what kind of file change this is, so there doesn't have to be any
"if" in the prompt text.
This commit is contained in:
Stefan Haller
2023-03-12 16:45:46 +01:00
parent 1f801b91e4
commit 5c55ce6555
4 changed files with 22 additions and 3 deletions

View File

@ -15,3 +15,11 @@ func (f *CommitFile) ID() string {
func (f *CommitFile) Description() string {
return f.Name
}
func (f *CommitFile) Added() bool {
return f.ChangeStatus == "A"
}
func (f *CommitFile) Deleted() bool {
return f.ChangeStatus == "D"
}