[cfe-dev] [llvm-dev] [llvm-foundation] Sequential ID Git hook
    Mehdi Amini via cfe-dev 
    cfe-dev at lists.llvm.org
       
    Fri Jul  8 13:07:32 PDT 2016
    
    
  
> On Jul 8, 2016, at 1:05 PM, Renato Golin <renato.golin at linaro.org> wrote:
> 
> On 8 July 2016 at 21:04, Mehdi Amini <mehdi.amini at apple.com> wrote:
>>> What about git describe?
>> 
>> Not a number.
> 
> It contains a number... "tag-number-hash"
> 
> Removing the tag and hash seems trivial.
And you end up with a number that is not unique across branch.
The problem is not that is it is not possible to work with a tuple (branch, number), the problem is that a tuple (or a string) is not a number and breaks existing infrastructure. It does not mean it cannot be made to work, but it won’t out-of-the-box.
(Imagine that the LNT  database needs an integer id for instance, and this id is usually the SVN rev, unique across branches).
— 
Mehdi
    
    
More information about the cfe-dev
mailing list