-
Notifications
You must be signed in to change notification settings - Fork 12
Open Branch
Alistair McKinnell edited this page Jan 20, 2022
·
4 revisions
Rationale
From the command line open all the files from a git feature branch in RubyMine.
Mechanism
Add this command line script to your shell:
mine_branch () {
if [[ "$1" == "" ]]
then
branch=master
else
branch=$1
fi
git diff --name-only --diff-filter=d $branch | xargs -r mine .
}Notes:
- You will need to
brew install findutilsand follow instructions to get the-roption forxargs. - Change
masterto whatever you use. For example, you have switched tomain. - This script assumes that you have installed the
mineusingRubyMine > Tools > Create Command-line Launcher....