Stash - Branch Input
This will hide the branch span tag and insert an input box with the git checkout branch command to allow for easy cutting & pasting
Tripple click input to copy git co branch command Double click over branch name to copy only branch name
Visit Stash pull request
Click yellow JS Icon
Paste in below code
var branch = jQuery("span.source-branch span.ref.branch span.name").first().text();
jQuery("span.source-branch span.ref.branch span.name").first().hide();
jQuery("span.source-branch span.ref.branch span.name").first().parent().append('<input value="git co '+ branch +'" type="text"></input>'); console.log( "ready!" );
if(jQuery("td.source")) {
jQuery("td.source span.ref.branch span.name").each(function() {
var branch = jQuery(this).text();
jQuery(this).hide();
jQuery(this).parent().append('<input value="git co '+ branch +'" type="text"></input>'); console.log( "ready!" );
});
}
Click 'Autostart'
Click Save icon
Reload page & profit