Both very useful replies, thank you very much.

On Sat, May 11, 2019, 6:37 PM Krzysztof Gogolewski <[email protected]>
wrote:

> Hi,
>
> You can use git tag --contains <sha> to see the list of tags containing a
> commit; this goes back to ghc-7.2.
>
> A different option is to checkout the configure.ac file for a given
> commit; there'll be a line such as
> AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.9], [
> [email protected]], [ghc])
> which means that GHC was 6.9 (so the given commit was released in 6.10).
>
> Of course both methods don't account for cherry-picks, the same change
> with a different sha could have landed in a bugfix release.
>
> -Krzysztof
>
> On Sat, May 11, 2019 at 10:27 PM Artem Pelenitsyn <[email protected]>
> wrote:
>
>> Hi chessai,
>>
>> What I usually do for this is open up the corresponding GitHub page, e.g.:
>>
>> https://github.com/ghc/ghc/commit/bb3fa2d18686d0c08b57c66a90a9ea1b4e4482ee
>>
>> where I see the list of branches the commit was added to, below the
>> commit message (note that you have to click "..." to see the full list of
>> branches). The branches ending with `-release` (e.g. ghc-8.6.5-release)
>> answer your question, I believe.
>>
>> --
>> Best, Artem
>>
>>
>> On Sat, 11 May 2019 at 23:01, chessai . <[email protected]> wrote:
>>
>>> Devs,
>>>
>>> Is there a way to take the sha1 of a git commit and find which
>>> released version of GHC contains that commit, without resorting to a
>>> manual cross-reference?
>>>
>>> Is it possible there could be some sort of webpage where this
>>> information could be made accessible, just by pasting in a commit?
>>> _______________________________________________
>>> ghc-devs mailing list
>>> [email protected]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>
>> _______________________________________________
>> ghc-devs mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
>
_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to