在 public Git 存储库中搜索更新代码的提交

Searching for the commit where a code was updated in public Git repository

我有一个问题,在 Python 库的最新更新中不推荐使用某些功能,我正在寻找回滚到早期版本是否可行的方法。但是,我不熟悉像 Git 这样的版本控制系统,可以使用一些关于如何导航它以找到我正在寻找的信息的指示。

具体来说,我正在 Github 上寻找这个 public repository, and this source code

在最新的 master 分支中,添加了以下警告以指示弃用功能:

if K.backend() == 'theano' and (dropout or recurrent_dropout):
            warnings.warn(
                'RNN dropout is no longer supported with the Theano backend '
                'due to technical limitations. '

如何找到此行添加到文件中的时间(以及什么版本的库)?我在 Git 源代码上偶然发现了一个历史选项卡,但我所能找到的只是这个 commit,这意味着该功能必须在此之前被弃用。

你可以责怪来自 github 的文件:

https://github.com/keras-team/keras/blame/master/keras/layers/recurrent.py

您可以在 git 上执行完全相同的操作,以防万一。

https://github.com/keras-team/keras/commit/dec0c7b7aeddab2b31b55ccb015d7e0735206d59你可以看到它从2.1.3开始就在python? (检查标签)