sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

[Feature] Show stash in commit graph

Open bwachtendorf opened this issue 1 year ago • 1 comments

Currently stashes are only visible on the "Stashes" menu and its hard to see where they fit in on the commit graph. Would it be possible to show stashes in the commit graph and allow things like pop and apply stash via the context menu?

bwachtendorf avatar Oct 09 '24 08:10 bwachtendorf

In fact, this is intentional. See the code in src/ViewModels/Repository.cs:

image

Stash is very different from normal commits (or revisions). The context menu operations are also very different between revision and stash. Instead, in this project, Stash is placed next to Local Changes to highlight that it contains only uncommitted local changes.

love-linger avatar Oct 09 '24 09:10 love-linger

Knowing which commit you were at when the changes were stashed is valuable information about the stash, in my opinion. Seeing the stashes in the commit graph (similarly to how it's done in Sublime Merge for example) makes them more useful, I think.

duke1995 avatar Jan 30 '25 20:01 duke1995