Both very useful replies, thank you very much.

On Sat, May 11, 2019, 6:37 PM Krzysztof Gogolewski <krz.gogolewski@gmail.com> 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], [glasgow-haskell-bugs@haskell.org], [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 <a.pelenitsyn@gmail.com> wrote:
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@gmail.com> 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@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs