Hi Bill

 

Thanks for your help.

 

I am trying a few things out locally and may make some proposals to the
development team in due course if they work.

 

73

 

Charlie

 

 

 

  _____  

From: Bill Somerville [mailto:g4...@classdesign.com] 
Sent: 05 July 2017 10:44
To: wsjt-devel@lists.sourceforge.net
Subject: Re: [wsjt-devel] Patch files for Windows

 

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

Reply via email to