[LEDE-DEV] [PATCH] scripts/getver.sh: use --count for git rev-list to count commits
Jonas Gorski
jonas.gorski at gmail.com
Thu Nov 17 01:56:50 PST 2016
Hi,
On 17 November 2016 at 10:10, Rafał Miłecki <zajec5 at gmail.com> wrote:
> On 17 November 2016 at 10:05, Rafał Miłecki <zajec5 at gmail.com> wrote:
>> On 17 November 2016 at 09:57, Jo-Philipp Wich <jo at mein.io> wrote:
>>> do you happen to know whether rev-list --count is available in all Git
>>> versions?
>>
>> I found it mentioned in various posts from 2012 so it should be well settled.
>
> More reliable source: it's first documented in 1.8.0:
> https://git-scm.com/docs/git-rev-list/1.8.0
> which was released in 2012.
We currently only require 1.7[1], and some of the buildbots still use
that. --count was actually used in the first version, and removed
because it broke the build on some buildbots / LTS distributions [2].
Regards
Jonas
[1] https://github.com/lede-project/source/blob/master/include/prereq-build.mk#L161
[2] https://git.lede-project.org/f1765277bacbea47a45ed913ca8fa043e9f71393
More information about the Lede-dev
mailing list