Skip to main content
added 146 characters in body
Source Link
phils
  • 53.1k
  • 3
  • 84
  • 127

If you're running a Magit version newer than 2.8 (the relevant commit was on 2016-10-10), you can customize the user option magit-no-confirm-default.

If you add magit-branch-and-checkout to that list, then when you use bc you will only need to enter athe new branch name, whichand Magit will be set to whateveruse the default start point would have been, hadwithout prompting you been prompted for one.

n.b. That default start point is contextual! The prompt for the new branch will indicate what it's going to usethe start point will be.

e.g. If you are viewing a Magit Log or Magit Refs buffer, the start point would reflect the ref at point, rather than the branch you currently have checked out.

If you're running a Magit version newer than 2.8 (the relevant commit was on 2016-10-10), you can customize the user option magit-no-confirm-default.

If you add magit-branch-and-checkout to that list, then when you use bc you will only need to enter a new branch name, which will be set to whatever the default start point would have been, had you been prompted for one.

n.b. That default is contextual! The prompt for the new branch will indicate what it's going to use.

If you're running a Magit version newer than 2.8 (the relevant commit was on 2016-10-10), you can customize the user option magit-no-confirm-default.

If you add magit-branch-and-checkout to that list, then when you use bc you will only need to enter the new branch name, and Magit will use the default start point without prompting you.

n.b. That default start point is contextual! The prompt for the new branch will indicate what the start point will be.

e.g. If you are viewing a Magit Log or Magit Refs buffer, the start point would reflect the ref at point, rather than the branch you currently have checked out.

Source Link
phils
  • 53.1k
  • 3
  • 84
  • 127

If you're running a Magit version newer than 2.8 (the relevant commit was on 2016-10-10), you can customize the user option magit-no-confirm-default.

If you add magit-branch-and-checkout to that list, then when you use bc you will only need to enter a new branch name, which will be set to whatever the default start point would have been, had you been prompted for one.

n.b. That default is contextual! The prompt for the new branch will indicate what it's going to use.