Commit searching

chessai . chessai1996 at gmail.com
Sun May 12 14:37:51 UTC 2019


Both very useful replies, thank you very much.

On Sat, May 11, 2019, 6:37 PM Krzysztof Gogolewski <krz.gogolewski at 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 at 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 at gmail.com>
> 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 . <chessai1996 at 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 at haskell.org
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190512/f41a339f/attachment.html>


More information about the ghc-devs mailing list