abcdw,
@abcdw@fosstodon.org avatar

Did you know that you can do a git log just for a small part of the file?

mirekdlugosz,
@mirekdlugosz@fosstodon.org avatar

@abcdw
Oh yeah, and you can also have got log follow changes across file renames.

It’s one of these things that you need once a year, but when you do, you spend 10 minutes trying to find the right command line incantation and then give up 🤷

yisraeldov,
@yisraeldov@linuxrocks.online avatar

@abcdw How?

TheSecondVariation,
@TheSecondVariation@graz.social avatar

But how?
@yisraeldov @abcdw

abcdw,
@abcdw@fosstodon.org avatar

@TheSecondVariation @yisraeldov select a region, magit-file-dispatch, l.

@krathink also mentioned vc-region-history.

And of course -L flag for git log.

bamfic,
@bamfic@autonomous.zone avatar

@abcdw how?

abcdw,
@abcdw@fosstodon.org avatar

@bamfic select a region, call magit-file-dispatch, press l.

credmp,
@credmp@fosstodon.org avatar

@abcdw magit is magical :)

karthink,
@karthink@fosstodon.org avatar

@credmp @abcdw You don't need magit for this.

Emacs does this out of the box with the command vc-region-history (C-x v h).

See also vc-print-log (C-x v l) and vc-annotate (C-x v g).

abcdw,
@abcdw@fosstodon.org avatar

@karthink @credmp you don't even need emacs for this ;)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • rosin
  • ngwrru68w68
  • Durango
  • magazineikmin
  • InstantRegret
  • DreamBathrooms
  • Youngstown
  • Leos
  • slotface
  • ethstaker
  • osvaldo12
  • khanakhh
  • kavyap
  • mdbf
  • megavids
  • everett
  • cisconetworking
  • cubers
  • anitta
  • tester
  • tacticalgear
  • thenastyranch
  • vwfavf
  • modclub
  • provamag3
  • GTA5RPClips
  • normalnudes
  • JUstTest
  • All magazines