Skip to content

Command history lacks detail when deleting a branch #2468

@ptim

Description

@ptim

Niggle:

I just inadvertently deleted the wrong branch, but lazygit made it harder to find the hash to recover:

I expected / would hope for:

# from the CLI
git branch -D "feature/my-branch"
Deleted branch feature/my-branch (was 0ffd351).

# when I can see the hash, I can recover like:
git checkout -b "feature/my-branch" 0ffd351

Lazygit omits the hash of the head of the deleted branch in the log:

Delete branch
    git branch -d "feature/my-branch"

Solution I like

Include the hash in the log message:

Delete branch
    Deleted branch feature/my-branch (was 0ffd351).

Alternatives considered

  • don't use lazygit for branch deletion
  • recover using other methods

Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions