Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show only commits into certain branch on Sublime Merge

How can I filter my commit view to show only the commits into my master branch? To filter all the noise of seeing commits on all the other branches.

In Sourcetree this would be filtering "First Parent Only" on a given branch.

like image 845
Adam Johns Avatar asked Oct 03 '18 04:10

Adam Johns


People also ask

How do I rebase in sublime merge?

Here is how to replicate the command git rebase origin/master mine in Sublime Merge: Check out the branch you want to rebase ( mine ). In the "Commits" view ( Ctrl + 2 by default), right-click on the latest commit of the branch you want to rebase onto ( origin/master ). Choose "Rebase mine onto origin/master".


2 Answers

As of build 1070, you can do this by Alt-clicking the eye icon on the branch name in the location bar:

Example:

enter image description here

like image 59
Adam Johns Avatar answered Sep 18 '22 15:09

Adam Johns


Build 1107 has a pretty convenient solution to the OP's problem. (I'm not sure if that's when they started including it though).

Context menu option

Simply right-click on the commit that the branch you want to isolate is at and choose to hide all branches except the relevant one.

like image 43
Kanishk Kakar Avatar answered Sep 17 '22 15:09

Kanishk Kakar