Commit searching

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Commit searching

chessai .
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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Commit searching

Artem Pelenitsyn
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 . <[hidden email]> 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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Commit searching

Krzysztof Gogolewski
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], [[hidden email]], [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 <[hidden email]> 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 . <[hidden email]> 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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Commit searching

chessai .
Both very useful replies, thank you very much.

On Sat, May 11, 2019, 6:37 PM Krzysztof Gogolewski <[hidden email]> 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], [[hidden email]], [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 <[hidden email]> 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 . <[hidden email]> 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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs