Gentoo Archives: gentoo-dev

From: Jason Zaman <jason@×××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Infra plans regarding $Id$ - official answer...
Date: Sat, 15 Aug 2015 13:10:19
Message-Id: CAPuKSJZxBvTXC_ekXpnjBJYCS1GgxSHXwfQ9kE6MvP=fyJ=eFQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] Infra plans regarding $Id$ - official answer... by Peter Stuge
1 On 15 Aug 2015 20:45, "Peter Stuge" <peter@×××××.se> wrote:
2 >
3 > Hi and happy Git days! :)
4 >
5 >
6 > Robin H. Johnson wrote:
7 > > It expands to the hash of the blob of that file; and from that, you can
8 > > identify which commits the blob exists in.
9 >
10 > $ git ls-tree HEAD README
11 > 100644 blob 08ae16956b8944da2fef75fee892dcba457cf4f0 README
12 > $
13 >
14 > $ (stat --printf='blob %s\0' README; cat README) | sha1sum
15 > 08ae16956b8944da2fef75fee892dcba457cf4f0 -
16 > $
17 >
18 > This is so simple to generate that it doesn't really need a
19 > placeholder in every ebuild in the repository.
20 >
21 >
22 > > The primary use case of it is to allow users to easily see what
23 > > version of a given ebuild they are using.
24 >
25 > I guess the merits of this use case are up for discussion also
26 > outside of infra?
27 >
28 > I think a single tree-wide identifier (let's it a snapshot identifier?)
29 > would be far more useful.
30
31 I already filed a bug for this:
32
33 https://bugs.gentoo.org/557366
34
35 -- Jason