crablang / crab

A community fork of a language named after a plant fungus. All of the memory-safe features you love, now with 100% less bureaucracy!
https://www.crablang.org
Other
5.13k stars 66 forks source link

add script to sync from upstream #50

Closed trvswgnr closed 1 year ago

trvswgnr commented 1 year ago

the sync-upstream.sh script does the following:

  1. checks out a branch called 'current'
  2. adds the remote "upstream" if it doesn't exist
  3. fetches the upstream 'master' branch and hard resets to it
  4. checks out specific files that we want to keep from our 'master' branch and commits them
  5. force pushes to the 'current' branch on 'origin'

after the script runs, a PR should be made from 'current' into 'master'