-
Is there any easy way to show and navigate back/forth from a snapshot (complete files, not just the diff) in the history without having to do checkouts? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
This possible for files, not complete trees. I actually have a branch to make this better because I use it quiet often. You could use For example: in the repo history ("graph") I see an interesting commit, In these views there is typically There is a plan to do this for complete trees actually (basically using temporary worktrees). I personally do a lot of research, revision digging and reading while coding so I probably would like to have that feature. |
Beta Was this translation helpful? Give feedback.
-
My |
Beta Was this translation helpful? Give feedback.
-
I looked at the Then, from the default "dashboard" views, the rebase one is deprecated and I should remove it (from the default at least). The functionality lives in the graph now. And should be faster. (The rebase dashboard is also the slowest to open.) The graph "dashboard" should also not be in the list. Ideally the graph is a long lived view because rendering the graph (from scratch) is very expensive. But cycling reuses the view (or closes the previous view). The graph also has a different styling. So we have status, branch, tags which are unique and share the same UI. But they don't go together UX wise. For example: status and the diff around all files have a close relationship; or status and the commit message view. I do like |
Beta Was this translation helpful? Give feedback.
-
What I found out recently is that when I'm looking at a patch, and now want to see more context from the hunk the cursor is in. Instead of So I basically see the patch with context. (And then I can use |
Beta Was this translation helpful? Give feedback.
This possible for files, not complete trees. I actually have a branch to make this better because I use it quiet often.
You could use
git: show current file at commit
from the Command Palette but I usually use[o]
when in a hunk in a commit/patch view.For example: in the repo history ("graph") I see an interesting commit,
[o]
to open the commit and then again[o]
to open the complete file at that commit. Or even more so: I select something in a normal buffer, thenLine History
which also shows patches and then[o]
to open the complete file at that commit again.In these views there is typically
o
and the uppercaseO
bound. I may flip both in the future as one navigation is to the same po…