#!/bin/sh

# Needs https://github.com/ingydotnet/git-subrepo installed

# add local libpebble3 repo as a remote
git remote add libpebble3-temp-local ../libpebble3/.git

# pull public subtree from libpebble3. This will squash all changes into one commit (we don't have
# a choice in this while we're using subrepo).
git subrepo pull public --message "Pull changes from public repo"

# remove the remote so we don't accidentally use it
git remote remove libpebble3-temp-local

echo "\nCheck what just got committed to coreapp"
