{"id":920,"date":"2013-01-29T16:30:03","date_gmt":"2013-01-29T08:30:03","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=920"},"modified":"2013-01-29T16:30:03","modified_gmt":"2013-01-29T08:30:03","slug":"git%e7%9a%84%e6%8e%92%e9%94%99%e7%a5%9e%e5%99%a8pickaxe%e5%92%8cgit-blame","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=920","title":{"rendered":"git\u7684\u6392\u9519\u795e\u5668pickaxe\u548cgit blame"},"content":{"rendered":"<p>git log -Sstring \u8fd9\u91cc\u7684-S\u9009\u9879\u88ab\u79f0\u4f5cpickaxe\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u6392\u9519\u5de5\u5177\u3002<\/p>\n<p>\u6bd4\u5982\uff1a git log -Sinclude &#8211;pretty=oneline &#8211;abbrev-commit init\/version.c<\/p>\n<p>\u4f1a\u628a\u51cf\u5c11\u4e86\uff0c\u6216\u8005\u589e\u52a0\u4e86include\u7684commit\u5168\u90e8\u627e\u51fa\u6765\u3002<\/p>\n<p>\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u6709\u4e00\u4e2a\u63d0\u4ea4\u589e\u52a0\u548c\u51cf\u5c11include\u7684\u6b21\u6570\u4e00\u6837\uff0c\u8fd9\u4e2acommit\u4e0d\u4f1a\u88ab\u5217\u51fa\u6765\u3002<\/p>\n<p>\/\/\/\/\/\/\/\/\/\/\/\/\/<\/p>\n<p>\u53e6\u5916\u4e00\u4e2a\u6392\u9519\u5de5\u4f5c\u662f git blame:<\/p>\n<p>git blame\u53ef\u4ee5\u7528\u6765\u5e2e\u52a9\u67e5\u627e\u5f15\u5165bug\u7684commit\u3002git blame\u544a\u8bc9\u4f60\u8c01\uff0c\u4ec0\u4e48\u65f6\u5019\uff0c\u662f\u54ea\u4e2acommit\u66f4\u6539\u4e86\u67d0\u4e2a\u6587\u4ef6\u3002<\/p>\n<p>\u5982: git blame -L 32, init\/version.c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git log -Sstring \u8fd9\u91cc\u7684-S\u9009\u9879\u88ab\u79f0\u4f5cpickaxe\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u6392\u9519\u5de5\u5177\u3002 \u6bd4\u5982\uff1a git log -Sinclude &#8211;pretty=oneline &#8211;abbrev-commit init\/version.c \u4f1a\u628a\u51cf\u5c11\u4e86\uff0c\u6216\u8005\u589e\u52a0\u4e86include\u7684commit\u5168\u90e8\u627e\u51fa\u6765\u3002 \u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u6709\u4e00\u4e2a\u63d0\u4ea4\u589e\u52a0\u548c\u51cf\u5c11include\u7684\u6b21\u6570\u4e00\u6837\uff0c\u8fd9\u4e2acommit\u4e0d\u4f1a\u88ab\u5217\u51fa\u6765\u3002 \/\/\/\/\/\/\/\/\/\/\/\/\/ \u53e6\u5916\u4e00\u4e2a\u6392\u9519\u5de5\u4f5c\u662f git blame: git blame\u53ef\u4ee5\u7528\u6765\u5e2e\u52a9\u67e5\u627e\u5f15\u5165bug\u7684commit\u3002git blame\u544a\u8bc9\u4f60\u8c01\uff0c\u4ec0\u4e48\u65f6\u5019\uff0c\u662f\u54ea\u4e2acommit\u66f4\u6539\u4e86\u67d0\u4e2a\u6587\u4ef6\u3002 \u5982: git blame -L 32, init\/version.c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[36],"class_list":["post-920","post","type-post","status-publish","format-standard","hentry","category-unix_linux","tag-git"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=920"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}