Git hooks are not the right tool for this task. It is better to run `git
describe` during the build process to generate a version file, which
will be compiled in and shown by `geeqie --version`.

It is easy to automatically generate version.h with few #define
statements or something like that and include it wherever neccessary.


Colin Clark wrote, on 2.5.2016 19:46:
> 
>> I'll post in the issues if appropriate: the question I have at the
>> moment is that the about box seems woefully out of date, as is "geeqie
>> --version". I am fairly sure I am compiling master HEAD.
>>
> Hi Klaus
> 
> There have been quite a few updates to the repository recently, and 
> maybe a few more to come from me - e.g. copy/move with thumbnail preview 
> and simultaneous rename, additional search functions.
> 
> I think people may try to keep up to date by downloading the master 
> rather than wait for a release, but that gives a problem when they 
> report problems - what have they compiled?.
> 
> Is it a simple thing to use git hooks to run a command to update a file 
> in the repo at each commit, so that the About window can show not just 
> major/minor version, but also e.g. the output of "git describe" at the 
> time the last commit was made?
> 
> If not, no problem.
> 
> 
> Colin...
> 
> 
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Geeqie-devel mailing list
> Geeqie-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geeqie-devel
> 

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to