OP has a 3.4 site that has had modifications to core code ($ contracted but nothing in contract mentioned maintenance for future updates/upgrades to core ... me thinks). Coder (an MP) has not supplied any info on what files or modifications have been made.
Am trying to find a way to use git to see what files and modifications have been made to the core code.
Trying to git acquire a certain version by commit hash.
In using a laptop as a testing ground ...
In a 3.4 code directory currently a 3.4.highest, have run:
git log --oneline > oneliner.txt |cat oneliner.txt
and can see the commit hash of all weekly releases.
5dcd9c53e3a weekly release 3.4+
51e05c09c3a weekly release 3.4+
27e2fe69812 weekly release 3.4+
16deaa86113 weekly release 3.4+
a45c4660002 weekly release 3.4+
How do I set by commit hash?
git checkout 5dcd9c53e3a
That does give a warning ... but following:
HEAD is now at 5dcd9c53e3a weekly release 3.4+
and a git branch -a shows:
* (HEAD detached at 5dcd9c53e3a)
remotes/origin/HEAD -> origin/master
31c05704b81..9650f3f56f7 MOODLE_34_STABLE -> origin/MOODLE_34_STABLE
You are not currently on a branch.
Please specify which branch you want to merge with.
checking version.php file it shows:
fgrep '$release' version.php
$release = '3.4+ (Build: 20180112)'; // Human-friendly version name
I need the 3.4+ (Build: 20171228)
Appears the closest I can get to the above is:
$release = '3.4+ (Build: 20171214)'
A git diff does pickup on edits I manually made to config-dist.php adding
only new lines and an additional comment.
diff --git a/config-dist.php b/config-dist.php
index 6c60e81b690..7b9ee1746a3 100644
And the bonus question ... site will upgraded in future.
So if I do normal git commands to upgrade to keep changes locally, will a git stash or commit keep and ignore any updates to modified core files? or do I need to add them to .gitignore and other git config files?
Normally one would:
git branch --track MOODLE_35_STABLE origin/MOODLE_35_STABLE
which sets the branch, then
git checkout MOODLE_35_STABLE
to acquire files.
Thanks, in advance, from any git user out here in Moodle la-la-land!