I then decided to leave the bash script I created for this compiling of all recent commits running in the background to get as much information needed for future use and that resulted in a nice overview of domoticz version number, short commit ID's, dates and short commit description as now can be found on this wiki page
I intend to keep this overview up to date and hopefully some of the more knowledgeably domoticz developers can show me a less time consuming way of connecting domoticz version numbers to commits.
for forum members interested;
git is a distributed version-control system for tracking changes in source code during software development.
I used the following git commands to get this list.
Code: Select all
git clone ==>> clones a repository into a newly created directory
git stash ==>> record the current state of the working directory and the index and go back to a clean working directory
git checkout ==>> navigate to a named branch
git pull ==>> get latest changes from current branch
git log ==>> show all commits from current branch (detailed)
git checkout development ==>> navigate to the main domoticz development branch
git checkout $commit ==>> checkout a specific commit to enable compiling that specific version
git clone https://github.com/domoticz/domoticz.git beta ==>> get a local copy of the domoticz development system in (sub) directory beta
git log --date=human --pretty=format:"%H %h - %ad : %s" | cut -b1-200 ==>> produce one liners from git log
git show <short commit ID> ==>> detailed information on one commit
lastCommit=$(git rev-parse --short HEAD~0) ==>> get latest commit
lastVersion=V4.$(expr $(git --git-dir ./.git rev-list $lastCommit --count) + 2107) ==>> calculate current version
#Howto get database versions
git log --pretty=format:"%h" > commits
while read commit; do
echo $(git show --abbrev-commit $commit | egrep '\+#define DB_VERSION|commit' | cut -d' ' -f2-3 );
done < commits > commitsDB.raw
grep DB_VERSION commitsDB.raw > commitsDB.tbl