Delta Upgrade: Difference between revisions
Jump to navigation
Jump to search
(Add a page to explain how to get an archive of only add/changed files between two Dolibarr versions.) Tag: 2017 source edit |
mNo edit summary |
||
| Line 9: | Line 9: | ||
The following page describe how to retreive an archive containing only changed files between two Dolibarr versions using the Git repository. | The following page describe how to retreive an archive containing only changed files between two Dolibarr versions using the Git repository. | ||
For the example, we take an upgrade from 11.0.1 to 11.0.2 but you can change the versions to suit your needs. | For the example, we take an upgrade from 11.0.1 to 11.0.2 but you can change the versions to suit your needs. | ||
* First, start by cloning the Dolibarr repository locally on your machine | |||
*First, start by cloning the Dolibarr repository locally on your machine | |||
<syntaxhighlight lang="shell"> | <syntaxhighlight lang="shell"> | ||
| Line 19: | Line 21: | ||
A new directory named <code>dolibarr</code> containing the Dolibarr source code from all branches will be located on your current path. | A new directory named <code>dolibarr</code> containing the Dolibarr source code from all branches will be located on your current path. | ||
* Switch to the cloned repository | *Switch to the cloned repository | ||
<syntaxhighlight lang="shell"> | <syntaxhighlight lang="shell"> | ||
| Line 25: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Create a local branch with the code from the latest released tag | *Create a local branch with the code from the latest released tag | ||
<syntaxhighlight lang="shell"> | <syntaxhighlight lang="shell"> | ||
| Line 31: | Line 33: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Create an archive of the changed files between 11.0.1 and 11.0.2 | *Create an archive of the changed files between 11.0.1 and 11.0.2 | ||
<syntaxhighlight lang="shell"> | <syntaxhighlight lang="shell"> | ||
Revision as of 15:00, 5 March 2020
The following page describe how to retreive an archive containing only changed files between two Dolibarr versions using the Git repository.
For the example, we take an upgrade from 11.0.1 to 11.0.2 but you can change the versions to suit your needs.
- First, start by cloning the Dolibarr repository locally on your machine
git clone https://github.com/Dolibarr/dolibarr.git
A new directory named dolibarr containing the Dolibarr source code from all branches will be located on your current path.
- Switch to the cloned repository
cd dolibarr
- Create a local branch with the code from the latest released tag
git checkout tags/11.0.2 -b 11.0.2
- Create an archive of the changed files between 11.0.1 and 11.0.2
git archive --output=dolibarr-delta-11.0.2.zip HEAD $(git diff --name-only tags/11.0.1 tags/11.0.2 --diff-filter=ACMRTUXB)
Your archive will be created inside the current dolibarr directory with the name dolibarr-delta-11.0.2.zip.