ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Boško Ivanišević

magit-find-file in Emacs is so helpful feature. You can just get any version of file quickly either by branch, tag or commit hash.

@bosko TIL that this exists :O I needed this so often!

@ctietze @bosko same, i wonder if it's exposed in transients

@bosko I use it a lot but I occasionally get stuck when I want to go to the newest version of a change I have located by commit. I always mean to lookup how to do that.

@cms Not sure if that's what you need but maybe vc-region-history can help with that.

@bosko that sounds interesting. I didn't explain it very well, but sometimes I explore history interactively - looking through commits, and I magit-visit the file object from a particular commit. From there I want to quickly diff this against an editable buffer of the same file from a HEAD

@cms While you are in the magit-revision buffer you can do M-x magit-ediff or just type 'E', then type 'c' (show commit) commit you are currently viewing is already selected. Hit Enter and then just type the name of the file and you will be ediffing versions. Is this what you need?

@bosko maybe it is, I will try this out. Thanks.

@bosko I've been using it a lot since I learned about it, it beats browsing through a web UI by a long shot.