Checking core template changes against your cobrand
You may have your own cobrand, overriding templates in core, and wish to check what changes there have been in core since your current version, to see whether you need to make similar/related changes to your cobrand templates. We provide a script to help with this.
First, let’s assume your cobrand is called
fixmypark and you are in a git
repository with your current code checked out, but with access to the new
version you wish to compare against (ie. your repository is up to date with
git fetch, see below).
Then you can run the following to list templates that have changed between the most recent version accessible from the current checkout and the newest available version:
If you prefer to be more explicit, you can specify old and new revisions:
If you specify
--diff, you get a diff of the changes in core templates
between the specified versions, but only in templates that your cobrand
For more advanced usage,
--interactive will step through those files one by
one, letting you pick various different diffs (e.g. core change version to
version, or the change between old/new version and your cobrand), and edit your
cobrand template using vimdiff.