您可以在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 <[email protected]>
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 <[email protected].edu>
Signed-off-by: Anna Schumaker <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
---
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/[email protected]
老闆,請接受答案,如果答案可以幫助你! –