It is a workaround, but at least you don't leave SourceTree. See for instance " Is it possible to filter out merged branches in git for-each-ref?")Īnd will get you list of branches it has been merged into: (Note: the syntax git for-each-ref -merged has been introduced in git 2.7.0 only - 4th of January, 2016. That will list all branches from which you can access the current SHA1 (which is to say "all branches in which the current branch has been merged") T=$(git for-each-ref -format="%(refname:short)" -merged "$") It should call a script in your %PATH% called git-bm (see this answer as an example) #!/bin/shįor branch in $(git for-each-ref -format="%(refname:short)" refs/heads/) do That is not as integrated as gitk, but at least, you don't have to switch tool.įirst define an custom action, using $SHA for getting the selected commit: You can use an custom action defined in SourceTree and listing those merged branches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |