[rkward-devel] mac issues

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Feb 4 19:42:25 UTC 2015


Hi,

On Tue, 03 Feb 2015 21:35:47 +0100
meik michalke <meik.michalke at uni-duesseldorf.de> wrote:
> Am Dienstag, 3. Februar 2015, 20:24:40 schrieb Thomas Friedrichsmeier:
> > > any ideas how to get the number of commits, not hashes?
> > 
> > git rev-list HEAD --count
> 
> well, my specification was sloppy ;-) it needs to work on the remote 
> repository, not a local copy. otherwise the bundle script has to pull
> the sources first.

ah, the answer seemed so easy...

Doing that without pulling the sources looks tricky, indeed. Somewhat
desperate ideas:
  - Use a shallow clone, base version info on date, rather than
    "number" of latest commit. This still means downloading around 2MB
    just to generate the version number, though...
  - Fetch and parse http://quickgit.kde.org/?p=rkward.git&a=log
  - Ignore the problem, and simply use the timestamp of running the
    bundle script as version number.
Then again, if the bundle script could re-use a local clone, it would
only have to do the cloning once, and from then on just pull updates.

I hope these ideas are at least a little bit helpful, this time ;-)

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20150204/6d994a62/attachment.sig>


More information about the rkward-devel mailing list