Skip to content

Commit ec964d1

Browse files
committed
Document patch reversal in git
1 parent 1511373 commit ec964d1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

dfetch/commands/diff.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@
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

0 commit comments

Comments
 (0)