File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 for files in the directory ``Core/MyModule/MySubmodule/`` and your current working directory is ``Core/MyModule/``.
4747 The correct command would be:
4848
49- ``git apply --verbose --directory='Core/MyModule/MySubModule` MySubmodule.patch``
49+ ``git apply --verbose --directory='Core/MyModule/MySubModule' MySubmodule.patch``
50+
51+ Updating the patch
52+ ======================
53+ If you have further changes to a project with a patch, you can update the patch by first reversing the patch, using the
54+ ``--apply`` and ''--directory`` arguments as shown above. To reverse the patch you also require the ``-R``. This will
55+ return the project to the state before the patch was applied. If you commit this base project, then re-apply the patch
56+ and any additional changes, you can generate a new patch with the latest state.
5057
5158"""
5259
You can’t perform that action at this time.
0 commit comments