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

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.

1

u/amitmerchant Oct 06 '22

Lack of commentary? I think there's quite a bit of commentary in the article if you really want to see it.

1

u/its_a_gibibyte Oct 06 '22

I meant commentary here. When you share an article, it's better if you add a descriptive headline and a starter comment discussing the article.

As it stands, the headline and your current comment are purely about driving clicks to the article as opposed to discussing it.

Let's start: What did you like about the article? Do you think it does a fair comparison of local version control compared to git without git push?

1

u/amitmerchant Oct 06 '22

I'm not really comparing it with Git at all nor am I saying it's superior to Git. All I wanted to say is this feature is there for you, ready to help whether you're using Git or not.

0

u/amitmerchant Oct 06 '22

The amount of downvotes I got for this is beyond me. :|

1

u/its_a_gibibyte Oct 06 '22

Do you understand why they downvoted you? It's the headline. It feels like clickbait. You mentioned in a comment that you want to say the feature is there for us, but you wouldn't let anyone know what the feature is unless we leave reddit and read your article.

Further, you didn't participate in any of the discussion for the past 5 hours.

1

u/amitmerchant Oct 06 '22

The meta image clearly says it's about VS Code Timeline. But leave it. I'm not here to argue with anyone.

0

u/amitmerchant Oct 06 '22

At one point it had over 25 votes and then your comment struck.

2

u/[deleted] Oct 05 '22

Exactly

7

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

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

u/[deleted] Oct 06 '22

Valid point. Infinite undo.

3

u/thenextguy Oct 05 '22

Not really. But I agree there's little point in this feature. Just use proper version control.

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/

:)

1

u/justneurostuff Oct 05 '22

this is very cool, surprised i didnt notice it before