Tracking changes to a file in the editor against master (or any other branch)
https://www.jetbrains.com/help/phpstorm/viewing-changes-information.html#local_changes
Using sublime text and GitGutter I can see changes in the editor compared against any branch or commit (always master in this case, but I have options).
This is the killer feature of Sublime Text, and worth putting up with all the other annoyances, because I can always see what changes I've made since staring work on the ticket.
Is there an option to select which commit the in-editor (gutter) changes tracking is against? I can't find it anywhere and the help doesn't say, so I'm presuming that it's just baked in that it's only against the most recent commit.
I'm aware of the difference viewer, that's way too overblown for what I'm trying to do here - just see what changes I've made whilst working on the current ticket, in the editor, so I can easily return to what I've done.
Being able to track changes since the last commit it pretty much useless to me.
Please sign in to leave a comment.
Hello,
There are couple of related requests:
https://youtrack.jetbrains.com/issue/IDEA-24398
https://youtrack.jetbrains.com/issue/IDEA-161465
Please vote for them.
As a workaround, VCS | Git | Compare with can be used.
Thanks for your reply. I note that the first request is 9 years old and the other is 2 years old. I don't expect this to happen any time soon.
For now I will have to stick with Sublime Text. My long term plan is to modify the Atom plugin minimap-git-diff which suffers from the same deficiencies. I will always be comparing to either master or the beginning of the current branch (which is our project is basically the same thing).
I really just fail to understand how this setup became the way things are done.