Hi, On Tue, 03 Feb 2015 21:35:47 +0100 meik michalke <[email protected]> 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
signature.asc
Description: PGP signature
_______________________________________________ rkward-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/rkward-devel
