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

时间:2015-10-07 15:43:48

标签: git github

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

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

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

然而:

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

P.S。我知道使用git命令行工具实现此目的的方法。我正专门寻找与Github合作的方法,因为我希望能够生成一个搜索链接,以便其他人可以在网上查看结果。

2 个答案:

答案 0 :(得分:5)

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

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

拥有commit url(看起来像这样:https://github.com/torvalds/linux/commit/39d0d3bdf7bab3021a31e501172ac0f18947f9b3),在最后添加.patch代码段。你应该得到类似this的东西:

  

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);

您在第二行中看到您拥有作者姓名和电子邮件地址。现在,知道了电子邮件地址,您可以fetch person's commits in that repository

https://github.com/torvalds/linux/commits?author=Anna.Schumaker@netapp.com

答案 1 :(得分:0)

嗯,一次又一次,解决问题的最佳方法是公开宣称我不知道如何解决问题...在发布问题后我立即意识到我还没有尝试过搜索仅发送电子邮件:

https://github.com/torvalds/linux/commits/master?author=Anna.Schumaker@Netapp.com

给出了预期的结果。

相关问题