diff options
| author | Paul Eggert | 2017-09-25 08:56:07 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-25 11:12:11 -0700 |
| commit | c4e6ff097c946b46e3a659982c61e25093bde1a7 (patch) | |
| tree | c5ab3504fd685de204ddbd64b7b53ace0ebf9fde /admin/notes/git-workflow | |
| parent | c7474fab180b57174edb3c949422e466100d605c (diff) | |
| download | emacs-c4e6ff097c946b46e3a659982c61e25093bde1a7.tar.gz emacs-c4e6ff097c946b46e3a659982c61e25093bde1a7.zip | |
emacs-25 → emacs-26
* admin/gitmerge.el (gitmerge-default-branch): Now emacs-26.
Diffstat (limited to 'admin/notes/git-workflow')
| -rw-r--r-- | admin/notes/git-workflow | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/admin/notes/git-workflow b/admin/notes/git-workflow index 2e4bbac70fe..cb10638af82 100644 --- a/admin/notes/git-workflow +++ b/admin/notes/git-workflow | |||
| @@ -19,15 +19,15 @@ Initial setup | |||
| 19 | ============= | 19 | ============= |
| 20 | 20 | ||
| 21 | Then we want to clone the repository. We normally want to have both | 21 | Then we want to clone the repository. We normally want to have both |
| 22 | the current master and the emacs-25 branch. | 22 | the current master and the emacs-26 branch. |
| 23 | 23 | ||
| 24 | mkdir ~/emacs | 24 | mkdir ~/emacs |
| 25 | cd ~/emacs | 25 | cd ~/emacs |
| 26 | git clone <membername>@git.sv.gnu.org:/srv/git/emacs.git master | 26 | git clone <membername>@git.sv.gnu.org:/srv/git/emacs.git master |
| 27 | (cd master; git config push.default current) | 27 | (cd master; git config push.default current) |
| 28 | ./master/admin/git-new-workdir master emacs-25 | 28 | ./master/admin/git-new-workdir master emacs-26 |
| 29 | cd emacs-25 | 29 | cd emacs-26 |
| 30 | git checkout emacs-25 | 30 | git checkout emacs-26 |
| 31 | 31 | ||
| 32 | You now have both branches conveniently accessible, and you can do | 32 | You now have both branches conveniently accessible, and you can do |
| 33 | "git pull" in them once in a while to keep updated. | 33 | "git pull" in them once in a while to keep updated. |
| @@ -57,11 +57,11 @@ you commit your change locally and then send a patch file as a bug report | |||
| 57 | as described in ../../CONTRIBUTE. | 57 | as described in ../../CONTRIBUTE. |
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | Backporting to emacs-25 | 60 | Backporting to emacs-26 |
| 61 | ======================= | 61 | ======================= |
| 62 | 62 | ||
| 63 | If you have applied a fix to the master, but then decide that it should | 63 | If you have applied a fix to the master, but then decide that it should |
| 64 | be applied to the emacs-25 branch, too, then | 64 | be applied to the emacs-26 branch, too, then |
| 65 | 65 | ||
| 66 | cd ~/emacs/master | 66 | cd ~/emacs/master |
| 67 | git log | 67 | git log |
| @@ -71,7 +71,7 @@ which will look like | |||
| 71 | 71 | ||
| 72 | commit 958b768a6534ae6e77a8547a56fc31b46b63710b | 72 | commit 958b768a6534ae6e77a8547a56fc31b46b63710b |
| 73 | 73 | ||
| 74 | cd ~/emacs/emacs-25 | 74 | cd ~/emacs/emacs-26 |
| 75 | git cherry-pick -xe 958b768a6534ae6e77a8547a56fc31b46b63710b | 75 | git cherry-pick -xe 958b768a6534ae6e77a8547a56fc31b46b63710b |
| 76 | 76 | ||
| 77 | and add "Backport:" to the commit string. Then | 77 | and add "Backport:" to the commit string. Then |
| @@ -79,17 +79,17 @@ and add "Backport:" to the commit string. Then | |||
| 79 | git push | 79 | git push |
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | Merging emacs-25 to the master | 82 | Merging emacs-26 to the master |
| 83 | ============================== | 83 | ============================== |
| 84 | 84 | ||
| 85 | It is recommended to use the file gitmerge.el in the admin directory | 85 | It is recommended to use the file gitmerge.el in the admin directory |
| 86 | for merging 'emacs-25' into 'master'. It will take care of many | 86 | for merging 'emacs-26' into 'master'. It will take care of many |
| 87 | things which would otherwise have to be done manually, like ignoring | 87 | things which would otherwise have to be done manually, like ignoring |
| 88 | commits that should not land in master, fixing up ChangeLogs and | 88 | commits that should not land in master, fixing up ChangeLogs and |
| 89 | automatically dealing with certain types of conflicts. If you really | 89 | automatically dealing with certain types of conflicts. If you really |
| 90 | want to, you can do the merge manually, but then you're on your own. | 90 | want to, you can do the merge manually, but then you're on your own. |
| 91 | If you still choose to do that, make absolutely sure that you *always* | 91 | If you still choose to do that, make absolutely sure that you *always* |
| 92 | use the 'merge' command to transport commits from 'emacs-25' to | 92 | use the 'merge' command to transport commits from 'emacs-26' to |
| 93 | 'master'. *Never* use 'cherry-pick'! If you don't know why, then you | 93 | 'master'. *Never* use 'cherry-pick'! If you don't know why, then you |
| 94 | shouldn't manually do the merge in the first place; just use | 94 | shouldn't manually do the merge in the first place; just use |
| 95 | gitmerge.el instead. | 95 | gitmerge.el instead. |
| @@ -102,11 +102,11 @@ up-to-date by doing a pull. Then start Emacs with | |||
| 102 | emacs -l admin/gitmerge.el -f gitmerge | 102 | emacs -l admin/gitmerge.el -f gitmerge |
| 103 | 103 | ||
| 104 | You'll be asked for the branch to merge, which will default to | 104 | You'll be asked for the branch to merge, which will default to |
| 105 | 'origin/emacs-25', which you should accept. Merging a local tracking | 105 | 'origin/emacs-26', which you should accept. Merging a local tracking |
| 106 | branch is discouraged, since it might not be up-to-date, or worse, | 106 | branch is discouraged, since it might not be up-to-date, or worse, |
| 107 | contain commits from you which are not yet pushed upstream. | 107 | contain commits from you which are not yet pushed upstream. |
| 108 | 108 | ||
| 109 | You will now see the list of commits from 'emacs-25' which are not yet | 109 | You will now see the list of commits from 'emacs-26' which are not yet |
| 110 | merged to 'master'. You might also see commits that are already | 110 | merged to 'master'. You might also see commits that are already |
| 111 | marked for "skipping", which means that they will be merged with a | 111 | marked for "skipping", which means that they will be merged with a |
| 112 | different merge strategy ('ours'), which will effectively ignore the | 112 | different merge strategy ('ours'), which will effectively ignore the |