My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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