My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

mfrb 453B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. #
  3. # mfrb
  4. #
  5. # Do "git rebase -i" against the "target" branch (bugfix-1.1.x, bugfix-2.0.x, or master)
  6. #
  7. [[ $# < 2 ]] || { echo "Usage: `basename $0` [1|2]" 1>&2 ; exit 1; }
  8. MFINFO=$(mfinfo "$@") || exit 1
  9. IFS=' ' read -a INFO <<< "$MFINFO"
  10. TARG=${INFO[3]}
  11. CURR=${INFO[5]}
  12. # If the branch isn't currently the PR target
  13. if [[ $TARG != $CURR ]]; then
  14. git fetch upstream
  15. git rebase upstream/$TARG && git rebase -i upstream/$TARG
  16. fi