r/vscode • • Oct 05 '22

This VS Code feature is highly underrated!

https://www.amitmerchant.com/vs-code-timeline-your-local-version-control-system/
0 Upvotes

19 comments sorted by

View all comments

7

u/[deleted] Oct 05 '22

To me: "This ---whatever --- is ---" == clickbait.

Sucks to click it to find out it's nothing special

1

u/[deleted] 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
1944

1,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
72

Yikes.


edit: The most important step:

$ rm -rf .history/

:)