My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

mfrb 421B

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