Re:Why is it so hard to see code from 5 minutes ago?
by blibble on Thursday February 18, 2021 @08:17PM
(#26188239)
jetbrains IDEs have a local history feature that seems to do this
[ Parent
| on HN ]
Re:Why is it so hard to see code from 5 minutes ago?
by azhenley on Thursday February 18, 2021 @08:21PM
(#26188286)
When I looked, it had the same problem that Dropbox has with this: a textual listing with only timestamps. I need semantic info! Show me the differences. Don't make me choose from this arbitrary list. I want to scan through the versions very, very quickly.
Re:Why is it so hard to see code from 5 minutes ago?
by avisser on Thursday February 18, 2021 @08:30PM
(#26188354)
Not sure what you're looking at, but IntelliJ 2020.3 gives me a list w/ timestamps in 1/3 of the modal, then a diff viewer in the other 2/3. I can down-arrow through the versions and the diff updates.
Re:Why is it so hard to see code from 5 minutes ago?
by azhenley on Thursday February 18, 2021 @08:33PM
(#26188381)
Fantastic, downloading the latest version now!
Re:Why is it so hard to see code from 5 minutes ago?
by Semaphor on Thursday February 18, 2021 @11:49PM
(#26189884)
That has been in for quite some time. I don’t remember since when, but at least in the 2019 version.
Re:Why is it so hard to see code from 5 minutes ago?
by lights0123 on Thursday February 18, 2021 @09:44PM
(#26188959)
That's the way it's been for years.
Re:Why is it so hard to see code from 5 minutes ago?
by easton_s on Thursday February 18, 2021 @09:16PM
(#26188724)
I use view local history of selected so I can blame myself and view git history of selected to I secretly seethe at some one who left the company 3 years ago.
Re:Why is it so hard to see code from 5 minutes ago?
by rurp on Thursday February 18, 2021 @11:07PM
(#26189565)
Yep, it's quite a handy feature at times. I don't use it a ton, but it is very helpful when I want it. One very nice aspect is that you can scope it to a specific section within a file (the same can be done with git history as well).
Re:Why is it so hard to see code from 5 minutes ago?
by winwhiz on Thursday February 18, 2021 @08:44PM
(#26188474)
Came here to say this. It is a really old feature.
Re:Why is it so hard to see code from 5 minutes ago?
by topspin on Thursday February 18, 2021 @09:22PM
(#26188776)
It is, and yes I've found it useful. However, the idea of a slider that you can just yank around sounds really appealing.
Re:Why is it so hard to see code from 5 minutes ago?
by dopidop on Thursday February 18, 2021 @08:33PM
(#26188384)
Yeah and it’s actually decent.
That being said I don’t mind committing often. If I have a slew of small commits I squash them.
Since I will need to commit at some point, I rather do it incrementally.
Re:Why is it so hard to see code from 5 minutes ago?
by BurningFrog on Thursday February 18, 2021 @09:02PM
(#26188605)
Committing removes the diff view in PyCharm, and I can't lose that.
By "diff view" I mean I can see all the changes I've done from the main branch.
Re:Why is it so hard to see code from 5 minutes ago?
by jlund-molfese on Thursday February 18, 2021 @09:12PM
(#26188696)
Personally, when I'm ready to submit a pull request, I usually do a soft reset to the point where I branched off from, then redo my commits and force push to the branch, for exactly that reason. I can't remember exactly which lines I've changed over the past few days unless I see all the diffs together.
Re:Why is it so hard to see code from 5 minutes ago?
by BurningFrog on Thursday February 18, 2021 @10:04PM
(#26189115)
Interesting idea...
I suppose I can stash my current code, reset to where I started somehow, and then unstash.
I've also toyed with the idea of having two repos on my disk.