[Pkg-giraffe-discuss] Kopano Webapp plugins versioning

Jan Engelhardt jengelh at inai.de
Mon Sep 23 18:35:39 BST 2019


On Monday 2019-09-23 11:14, Roel van Meer wrote:

> Jan Engelhardt writes:
>
>> > The spellchecker plugin, for example, has one version tag (v2.0.0) on the
v>> > initial commit from 2016. The version of the Kopano-built Buster package is
>> > 2.0.0.23+40.1, which seems to be the latest version tag plus the number of
>> > commits since that version. However, that makes it not possible to 
>> determine
>> > the last released version by looking at the Git repo alone.
>>
>> It does if you know that the tag offset is always taken on the first parents
>> of merges. (That does not make it easy, but it makes it deterministic at
>> least.)
>
> Sorry, I don't follow. Yes, it means that it is possible to determine the
> commit that was used for 2.0.0.23, but it doesn't mean I can see in the Git
> repo which commit was used for the latest release. Or am I missing something
> here?

ยป tag="v2.0.0"; for i in $(git rev-list --reverse --first-parent "$tag..origin/master"); do ofs="$(git rev-list --count "$tag..$i")"; echo "$tag+git$ofs => $i"; done

v2.0.0+git2 => e4e99de315cd19752992b3451b51d7fea7d437df
v2.0.0+git4 => 6fc709fae42873ad3ad2a530231049e2a835fe40
v2.0.0+git6 => 30cdc442fa64983d9ebc38c282849c6bad9af051
v2.0.0+git7 => af0b10d3697bb59279d12e42bbba3887d80c306a
v2.0.0+git8 => 59baf191c885e8b81b28dd7e690d01690623aca9
v2.0.0+git9 => a6648c8254fc1e65fa9d031573085662362e659e
v2.0.0+git11 => 8f2a1f9a2263eeda81ac171477484b214ff53f79
v2.0.0+git12 => fe3f85a81a838c7982e3ab541237d1c119e3eb95
v2.0.0+git13 => b1028e9f2c6da40bcf3c0d3a85efcf2f8e601213
v2.0.0+git15 => b4f9756dc6db9fab6d635af31e519c73014fa430
v2.0.0+git16 => a6446ba647d61fdf73c2e044580e3666210a263f
v2.0.0+git17 => f9dc39df52a229a3a79c4463618fc0579b534a87
v2.0.0+git18 => f1e30c2039ed52967e735a8749f261378c8ef97b
v2.0.0+git19 => 6f270e679efe0c1790fc61eb7521a366a63c1435
v2.0.0+git21 => fdbcf1f8b5695ce9c896f2c3307e94542d741bfc
v2.0.0+git22 => e27e43aa7a02b9786e291a3eafcaef2004e0556c
v2.0.0+git23 => adfd53b3d7e14cd9ce0483f02e0f2099379d15a2
v2.0.0+git24 => c50d374d72f84aa49caa5ce5d26530d581181097



More information about the Pkg-giraffe-discuss mailing list