joshp
joshp

Reputation: 836

VSCode: Showing git history in sidebar for previous commit

Is it possible to show git history in the sidebar for previously committed changes? Once I commit, it goes away:

enter image description here

I can always git reset --soft HEAD^ and un-stage to get to:

enter image description here

but then I have to either force push or force reset to sync with origin...

My ultimate goal is to be able to save the features and push to origin (to secure them), and still be able to see the changes I've made working on the current feature

Upvotes: 1

Views: 915

Answers (1)

alefragnani
alefragnani

Reputation: 3313

There is no setting for this, unfortunately. VS Code only displays/controls the decoration for the current diff, until you commit.

I would suggest you to open a feature request in VS Code repo (https://github.com/microsoft/vscode/issues/new/choose), or look for some extension that could do the trick.

The only git related extension that I have installed is GitLens, and I don’t remember seeing this feature. On the other hand, if something not git related is an alternative for you, I would suggest you to take a look at Footsteps extension (https://marketplace.visualstudio.com/items?itemName=Wattenberger.footsteps). It provides a good equivalence of the diff you are looking for, but with no connection to git commits.

Hope this helps

Upvotes: 0

Related Questions