Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2020 11:41:29 -0500
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        "Per olof Ljungmark" <peo@nethead.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: simple shell script to compare two dirs recursively
Message-ID:  <651f02ce4d0d94922c58178ce7d857a2.squirrel@webmail.harte-lyne.ca>
In-Reply-To: <mailman.92.1604404801.8523.freebsd-questions@freebsd.org>
References:  <mailman.92.1604404801.8523.freebsd-questions@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, November 2, 2020 16:44, Per olof Ljungmark wrote:
> On 2020-11-02 22:06, Ralf Mardorf wrote:
>
> Thank you for your responses.
>
> It is to keep track of a Wordpress plugin that we must do changes to in
> the php code, I'm just trying to figure out a way to apply our changes
> after the plugin is updated and our alterations are overwritten.
>
> In a way that is simple, that is.
>

Have you considered using Git and employing branches to track the basic plugin
against your custom version?

With Git if you keep your modified plugin in a branch called master then you
can open a branch called pluginupdate.  Switch to that branch (git checkout
pluginupdate) and install the updated plugin. You can then then use git diff to
identify all of the changes the plugin update made to your copy of the master
branch.  You can fix them in the pluginupdate branch, commit the changes,
checkout the master branch and then merge the pluginupdate branch back into
master (git merge pluginupdate).


Git works by keeping differing views (branches) of the file system and tracking
the changes in each view.  The only trick is that when you make changes to a
tracked file in one view (branch) you must either commit those changes to that
branch or stash them in a temporary stack before you can checkout a different
branch.

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?651f02ce4d0d94922c58178ce7d857a2.squirrel>