this post was submitted on 17 Jun 2024
9 points (84.6% liked)

VS Code

788 readers
5 users here now

founded 1 year ago
MODERATORS
 

I need to be able to see the difference between the current working file and the previous commit as I am editing the file. The only history plugins I can find either use pop-ups (which disappear when I start typing) or a dedicated diff-view which takes up too much space on my small monitor.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 4 months ago* (last edited 4 months ago) (1 children)

I’m on my phone so I can’t really test these out. But this should give you a few methods for printing the list of files changed.

Here’s a similar page to show the changes for a specific file. I expect that git blame will be similarly useful.

A few others that may help you get started as well:

git —help
git rev-parse
git log
git history
[–] [email protected] 1 points 4 months ago (1 children)

thanks so much for your help.

[–] [email protected] 1 points 4 months ago

My pleasure. Thanks for posting! And feel free to ask more questions as you tackle this one.