Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:How to create a patch

From MoodleDocs
Revision as of 14:50, 8 November 2012 by Eloy Lafuente (stronk7) (talk | contribs) (Suggest to recommend git format-patch)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

About git patches, I'd recommend to use "git format-patch" when possible, as far as it observes the original author, commits (and commit messages), when applying it with "git am". For a given branch FIXBRANCH, with n commits fixing something in MOODLE_XX_STABLE you can always get all the commits easily by doing:

git format-patch [FIXBRANCH...]MOODLE_XX_STABLE

(with FIXBRANCH being optional if it's your current branch)

Eloy Lafuente (stronk7) 22:50, 8 November 2012 (WST)