Open haubourg opened 7 years ago
That would be feasible with a hook, but you would change file name or a tag in the xml? The latter would work nicely.
Although an interesting feature would be to let QGIS do automatically that (show branch and/or sha in the project name if the project's folder is a GIT repo)
A tag in the XML was the idea, nested in the project property title, so that the title bar reflect QWAT's version. About your idea, can't we achieve that using a variable filled by a python function?
that would work if project title would support expression, which it does not. the commit hook would be your best way to go I guess.
Hi all, currently, it is not clear for a non git user to know what project version he is using. For the data model, it's easier since we have a version table.
I was wondering if we could change the QGIS project to add this information. I would imagine a "QWAT - master development branch - [commit sha]" and for releases " QWAT - version [tag]"
@3nids do you think a pre-commit hook could automate that ?