Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"git wtf" command: get a history of the current selection #547

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rahim
Copy link

@rahim rahim commented Mar 3, 2018

sublime-git-wtf

This came about to scratch my own itch - it provides a counterpart to sublime-text-git's blame handling that summarises the history of a set of lines rather than surface noisier file level change information provided by "Git: Log Current File" or just the last commit message for each line from "Git: Blame".

It's a simple wrapper round git log -L - https://git-scm.com/docs/git-log#git-log--Lltstartgtltendgtltfilegt

I'd love to extend this to support following functions rather than line ranges, but this appears more involved - it's based on per language regexes to match the methods with language tailored defaults usually configured via .gitattributes (http://urbanautomaton.com/blog/2014/09/22/tracking-method-history-in-git/). It's probably easiest to duplicate those regexes in to plugin itself. It's also not entirely clear to me what would be the ideal UX for choosing method over range.

Hopefully the naming isn't too abrasive... 😃

@adrianogil
Copy link

I've tested in my repo, It works as a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants