在没有GitHub帐户的作者的GitHub上查找提交

jkf*_*kff 0 git github

假设我想在Linux内核中找到某个贡献者的提交. https://github.com/torvalds/linux/commits/master

例如,Anna Schumaker 最近提交一个提交(我在当前历史记录中最近提交了一个不是由github帐户创作的提交).

关于该主题的一些其他SO问题建议使用https://github.com/torvalds/linux/commits/master?author=AUTHOR同一作者查找更多提交.

然而:

这是Github中缺少的功能吗?我做错了吗?

PS我知道使用git命令行工具完成此任务的方法.我正在寻找与Github一起做这件事的方法,因为我希望能够生成一个搜索链接,以便其他人可以在网上查看结果.

Ion*_*zău 5

您可以传递author参数用户名或电子邮件地址.正如您所注意到的,使用?author=torvalds提供了提交.

由于Anna没有GitHub帐户,您可以使用她的电子邮件.但是如何知道提交时如何找到她的电子邮件?

拥有提交URL(看起来像这样:),在最后https://github.com/torvalds/linux/commit/39d0d3bdf7bab3021a31e501172ac0f18947f9b3添加.patch片段.你应该得到的东西像这样:

https://github.com/torvalds/linux/commit/39d0d3bdf7bab3021a31e501172ac0f18947f9b3.patch

响应如下:

From 39d0d3bdf7bab3021a31e501172ac0f18947f9b3 Mon Sep 17 00:00:00 2001
From: Anna Schumaker <Anna.Schumaker@netapp.com>
Date: Mon, 5 Oct 2015 16:43:26 -0400
Subject: [PATCH] NFS: Fix a tracepoint NULL-pointer dereference

Running xfstest generic/013 with the tracepoint nfs:nfs4_open_file
enabled produces a NULL-pointer dereference when calculating fileid and
filehandle of the opened file.  Fix this by checking if state is NULL
before trying to use the inode pointer.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
---
 fs/nfs/nfs4trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs/nfs4trace.h b/fs/nfs/nfs4trace.h
index 28df12e..671cf68 100644
--- a/fs/nfs/nfs4trace.h
+++ b/fs/nfs/nfs4trace.h
@@ -409,7 +409,7 @@ DECLARE_EVENT_CLASS(nfs4_open_event,
            __entry->flags = flags;
            __entry->fmode = (__force unsigned int)ctx->mode;
            __entry->dev = ctx->dentry->d_sb->s_dev;
-           if (!IS_ERR(state))
+           if (!IS_ERR_OR_NULL(state))
                inode = state->inode;
            if (inode != NULL) {
                __entry->fileid = NFS_FILEID(inode);
Run Code Online (Sandbox Code Playgroud)

您在第二行中看到您拥有作者姓名和电子邮件地址.现在,知道了电子邮件地址,您可以在该存储库中获取人员提交:

https://github.com/torvalds/linux/commits?author=Anna.Schumaker@netapp.com
Run Code Online (Sandbox Code Playgroud)