On 05/07/2017 09:37, Charles Suckling wrote:
Just wondering what folks use to generate patch files, recommendations
etc.
I’ve downloaded Winmerge but not yet installed or tried it.
73
Charlie
Hi Charlie,
patches have many uses, do you mean proposing changes to the development
team or applying patches from others?
The tools used are almost always the command line ones. Source control
systems normally have their own versions. The main tools are `diff` and
`patch`. Universal diff format is usually best if there is an option.
The `diff` tool and SCS equivalents (`svn diff`, `git diif`, etc.) allow
patches to be created.
The `patch` tool and SCS eqivalents (`git apply` etc.) allow patches to
be applied and reverted (-R). The `patch` tool has a command option to
ignore a given number of directory levels from the files to patch paths
in the diff file, learning how this works is essential. Also `patch` is
a Unix style filter application and it takes input from the standard
input stream so you might use it like:
svn diff >~/my-patch.diff # record all the current differences from the
repository
cd <where the patch is to be applied>
patch -p0 <~/my-patch.diff
If you later wish to revert the patch then you can do:
patch -Rp0 <~/my-patch.diff
On Windows these tools are available in an MSys command line
environment, for example the one provided by MinGW which in turn is part
of the Qt installation.
73
Bill
G4WJS.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel