Skip to content

Instantly share code, notes, and snippets.

@zelig
Created December 3, 2015 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zelig/47f8b14100c156dfd551 to your computer and use it in GitHub Desktop.
Save zelig/47f8b14100c156dfd551 to your computer and use it in GitHub Desktop.
swarm PR git notes

rename toplevel bzz package to swarm:

find . -type f -name '*.go' | xargs perl -i.bak -pe 's|/bzz/|/swarm/|g';
find . -type f -name '*.go.bak' | xargs rm 

creating single commit rebase from a branch with patch

http://stackoverflow.com/questions/16675766/get-the-difference-between-two-branches-in-git

Make sure the target branch is uptodate with our rebase (current develop)

git remote update
git checkout poc0.1
git merge upstream/develop

Now create a replica of this develop branch on the main repo (the PR will be against this)

git checkout develop
git merge upstream/develop
git checkout -b swarm 
git push upstream

Now create another local branch off of develop, and patch it to bring it in sync with our target branch ethersphere/poc0.1

git checkout -b swarm-poc0.1
git merge upstream/develop # just to make sure it is uptodate
git diff --binary upstream/develop poc0.1 > ~/swarm.patch
git apply ~/swarm.patch

Now add in the changes for the ONE commit PR

git add swarm/ rpc/ common/ cmd accounts/ core/

test:

godep go test -v -cpu 8 ./... > test.log
bash swarm/test/syncing/00.sh

commit with --author flag and push:

git commit --author 'ΞTHΞЯSPHΞЯΞ <viktor.tron,nagydani,zsfelfoldi}@gmail.com>' -a -m 'Swarm - plan bee for content storage and distribution on web3'
git push origin 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment