- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Sometimes I want to view a file as it was when it was commited but currently it's not possible because lazygit always opens the file directly from the file system (i.e. the active branch).
To Reproduce
Steps to reproduce the behavior:
- Let's say that the active branch is main.
- View any other branch under Local Branches
- Open a commit and highlight a file.
- If you press o (Open File), an editor will open with the contents of the file on main, not the version that belongs to that commit.
Expected behavior
I want to see how the file looked when it was committed.
Version info:
Run lazygit --version and paste the result here
commit=4e38a941de3baf9e50d3fd5432933d6efccff091, build date=2025-02-25T11:24:06Z, build source=binaryRelease, version=0.47.2, os=linux, arch=amd64, git version=2.45.2
Run git --version and paste the result here
git version 2.45.2
Additional context
This might be by design, and if that's the case then look at this as a feature request :)
Blankeos
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working