HOW-TO:Create add-on PRs using Git Subtree Merging

From Official Kodi Wiki
Revision as of 13:32, 30 November 2014 by Takoi (talk | contribs) (Created page with " == Guidelines == == Example git setup using Subtree merging == <pre> git clone [email protected]:xbmc/repo-plugins.git git remote add myaddon [email protected]:me/myaddon.git ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Guidelines

Example git setup using Subtree merging

git clone [email protected]:xbmc/repo-plugins.git

git remote add myaddon [email protected]:me/myaddon.git
git fetch myaddon

git checkout -b myaddon_branch myaddon/master
git checkout gotham

First time setup if your addon already exist in repo:
git rm -r plugin.my.addon/

git read-tree --prefix=plugin.my.addon/ -u myaddon_branch
git diff --staged
git commit -m "[plugin.my.addon] 1.0.1"

Updates

git checkout gotham
git pull --strategy subtree --squash myaddon v1.0.2
git commit -m "[plugin.my.addon] 1.0.2"
git push origin gotham