mrgit icon indicating copy to clipboard operation
mrgit copied to clipboard

How about add `--force` option for `mrgit co` command to force checkout branches?

Open zybzzc opened this issue 6 years ago • 5 comments

zybzzc avatar Dec 05 '19 08:12 zybzzc

I never used it but I guess it makes sense. Although, since there are many options that git checkout accepts, I'd suggest doing this like mrgit diff:

mrgit co branch -- --force

This way you'll be able to pass there whatever you need.

Reinmar avatar Dec 16 '19 12:12 Reinmar

Although, the difference between mrgit co and mrgit diff is that diff doesn't require any  param so all params go after --. For mrgit co the branch name perhaps needs to go before -- because that's how mrgit needs it.

Reinmar avatar Dec 16 '19 12:12 Reinmar

I found this might not be a good idea, because I can just use mrgit exec 'git checkout -b new-branch to do the same.

zybzzc avatar Jan 09 '20 03:01 zybzzc

I found this might not be a good idea, because I can just use mrgit exec 'git checkout -b new-branch to do the same.

Is there a way to change the default shell of mrgit exec?

zybzzc avatar Jan 09 '20 03:01 zybzzc

Is there a way to change the default shell of mrgit exec?

At this moment, there is no way to change the default shell while executing the exec command.

pomek avatar Jan 09 '20 07:01 pomek