On Sat, Dec 03, 2011 at 01:06:18PM +0100, Andras Timar wrote:
2011/12/3 Pedro Lino <pedlino@gmail.com>:
Another situation: I download a master build from a tinderbox. How do
I know the build included? How do I know if the source it was
generated from is newer or older than the one I already have? Easy.
Just install, open the About box and check if 4f11d0a-adcf6d5-c4bb9bd
is greater or smaller than 4f11d0a-adcf6d5-c4b29bd (just an example)
You can check what's included and what's not, when you visit
for example http://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=4f11d0a
Those magic numbers in About box are git commit IDs.
Git commit IDs as identifiers have the huge problem that they are not
comparable (one cannot say which one is "greater") without referring
to the repository. How about we also put the *commit* (not author)
timestamp (in UTC) of the top node (commit), and maybe the branch?
Something like:
Build assembled from:
repo commit date branch
core: 4f11d0a 2011-11-16 21:57:28 master
help: adcf6d5 2011-11-05 14:01:21 master
...
Or instead of pretty-printing the date, just put it as seconds
since the epoch:
core: 4f11d0a 1321480648 master
help: adcf6d5 1320501681 master
...
Here's code to get that information:
echo $(git log -1 --format=%h) $(date --utc +'%Y-%m-%d %k:%M:%S' -d @$(git log -1 --format=%ct))
$(basename $(git symbolic-ref HEAD))
echo $(git log -1 --format='%h %ct') $(basename $(git symbolic-ref HEAD))
--
Lionel
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.