Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Talk:How to create a patch: Difference between revisions

From MoodleDocs
m Suggest to recommend git format-patch
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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:
About git patches, I'd recommend to use "git format-patch" when possible, as far as it keeps the original author, signed, 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
  git format-patch [FIXBRANCH...]MOODLE_XX_STABLE

Latest revision as of 23:36, 17 May 2016

About git patches, I'd recommend to use "git format-patch" when possible, as far as it keeps the original author, signed, 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)