Commit searching

Krzysztof Gogolewski krz.gogolewski at
Sat May 11 22:36:48 UTC 2019


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 file for a given commit;
there'll be a line such as
AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.9], [
glasgow-haskell-bugs at], [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.


On Sat, May 11, 2019 at 10:27 PM Artem Pelenitsyn <a.pelenitsyn at>

> Hi chessai,
> What I usually do for this is open up the corresponding GitHub page, e.g.:
> 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 . <chessai1996 at> 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
>> ghc-devs at
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list