My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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