r/vscode • u/amitmerchant • Oct 05 '22
This VS Code feature is highly underrated!
https://www.amitmerchant.com/vs-code-timeline-your-local-version-control-system/7
Oct 05 '22
Why would I use this instead of...Git? Like, what's the point? "You might make small modifications that aren't suited for a commit," I hear you say, but...isn't that what git stash is for?
1
u/amitmerchant Oct 06 '22
No one's asking you to use this over Git. It's just a handy feature which is out there for you always whether you're using Git or not.
1
Oct 06 '22
That doesn't really answer my question, IMHO. I understand that people can use different tools. Why would they want to use this tool instead of/in addition the tool they already use (Git)?
1
u/amitmerchant Oct 06 '22
Because Git can't give you the snapshot of file changes between the file saves.
1
3
u/thenextguy Oct 05 '22
Not really. But I agree there's little point in this feature. Just use proper version control.
7
Oct 05 '22
To me: "This ---whatever --- is ---" == clickbait.
Sucks to click it to find out it's nothing special
1
Oct 05 '22
This feature is underrated!
I read the article, and the feature is perfectly rated (that is, disappointing and banal).
I went into a moderately sized repo I use VSCode with. VSCode stores their diffs in
$YOUR_REPO/.history/.How many files is my "history"? Check this shit out:
$ cd $MY_REPO/.history/ # (this is vscode's location for the "feature") $ fd --type file . | wc -l 19441,944 fuckin' files in this one
.history/folder.How many files did I actually modify?
Seventy-two. That's it. 27 files per actual file modified.
$ fd --type file . | sed -e 's/[_0-9\.]//g' | sort | uniq | wc -l 72Yikes.
edit: The most important step:
$ rm -rf .history/:)
1
26
u/its_a_gibibyte Oct 05 '22
Sorry, downvoted for clickbait instead of actually having a meaningful post. The article might be good, but the lack of a descriptive headline and lack of commentary is something I can't reward.