{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5","id":50787334,"html_url":"https://github.com/futureworkz/today-i-learn/pull/5","diff_url":"https://github.com/futureworkz/today-i-learn/pull/5.diff","patch_url":"https://github.com/futureworkz/today-i-learn/pull/5.patch","issue_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/5","number":5,"state":"closed","locked":false,"title":"TIL Git: See all changes to a file","user":{"login":"stevenyap","id":5533717,"avatar_url":"https://avatars.githubusercontent.com/u/5533717?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenyap","html_url":"https://github.com/stevenyap","followers_url":"https://api.github.com/users/stevenyap/followers","following_url":"https://api.github.com/users/stevenyap/following{/other_user}","gists_url":"https://api.github.com/users/stevenyap/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenyap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenyap/subscriptions","organizations_url":"https://api.github.com/users/stevenyap/orgs","repos_url":"https://api.github.com/users/stevenyap/repos","events_url":"https://api.github.com/users/stevenyap/events{/privacy}","received_events_url":"https://api.github.com/users/stevenyap/received_events","type":"User","site_admin":false},"body":"Given a file eg `app/models/user.rb`, you can easily see all the commits\r\nmade in this file:\r\n\r\n```shell\r\n$ git log app/models/user.rb\r\n```\r\n\r\nIf you want to who wrote which line of code in the current file, you\r\ncan:\r\n\r\n```shell\r\n$ git blame app/models/user.rb\r\n```\r\n\r\nIf you want to see all the lines that are written in the file (including\r\ndeleted and modified lines), you can:\r\n\r\n```shell\r\n$ git log -L ,:app/models/user.rb\r\n```\r\n\r\nNow you can really find out who write what code when. :)","created_at":"2015-11-16T09:29:46Z","updated_at":"2015-11-16T09:37:43Z","closed_at":"2015-11-16T09:37:43Z","merged_at":"2015-11-16T09:37:43Z","merge_commit_sha":"5c958f0c5f0a1e37b5ecc2bfbf5ae122ee17ff27","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5/commits","review_comments_url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5/comments","review_comment_url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/5/comments","statuses_url":"https://api.github.com/repos/futureworkz/today-i-learn/statuses/5b7c67ad983229946eab5bc632efb7d3a381ed94","head":{"label":"futureworkz:git-see-all-changes","ref":"git-see-all-changes","sha":"5b7c67ad983229946eab5bc632efb7d3a381ed94","user":{"login":"futureworkz","id":14053351,"avatar_url":"https://avatars.githubusercontent.com/u/14053351?v=3","gravatar_id":"","url":"https://api.github.com/users/futureworkz","html_url":"https://github.com/futureworkz","followers_url":"https://api.github.com/users/futureworkz/followers","following_url":"https://api.github.com/users/futureworkz/following{/other_user}","gists_url":"https://api.github.com/users/futureworkz/gists{/gist_id}","starred_url":"https://api.github.com/users/futureworkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futureworkz/subscriptions","organizations_url":"https://api.github.com/users/futureworkz/orgs","repos_url":"https://api.github.com/users/futureworkz/repos","events_url":"https://api.github.com/users/futureworkz/events{/privacy}","received_events_url":"https://api.github.com/users/futureworkz/received_events","type":"Organization","site_admin":false},"repo":{"id":41614201,"name":"today-i-learn","full_name":"futureworkz/today-i-learn","owner":{"login":"futureworkz","id":14053351,"avatar_url":"https://avatars.githubusercontent.com/u/14053351?v=3","gravatar_id":"","url":"https://api.github.com/users/futureworkz","html_url":"https://github.com/futureworkz","followers_url":"https://api.github.com/users/futureworkz/followers","following_url":"https://api.github.com/users/futureworkz/following{/other_user}","gists_url":"https://api.github.com/users/futureworkz/gists{/gist_id}","starred_url":"https://api.github.com/users/futureworkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futureworkz/subscriptions","organizations_url":"https://api.github.com/users/futureworkz/orgs","repos_url":"https://api.github.com/users/futureworkz/repos","events_url":"https://api.github.com/users/futureworkz/events{/privacy}","received_events_url":"https://api.github.com/users/futureworkz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/futureworkz/today-i-learn","description":"Today-I-Learn (TIL) is inspired by Thoughbot, TIL is a repository for everyone to share what we have learn today.","fork":false,"url":"https://api.github.com/repos/futureworkz/today-i-learn","forks_url":"https://api.github.com/repos/futureworkz/today-i-learn/forks","keys_url":"https://api.github.com/repos/futureworkz/today-i-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/futureworkz/today-i-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/futureworkz/today-i-learn/teams","hooks_url":"https://api.github.com/repos/futureworkz/today-i-learn/hooks","issue_events_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/events{/number}","events_url":"https://api.github.com/repos/futureworkz/today-i-learn/events","assignees_url":"https://api.github.com/repos/futureworkz/today-i-learn/assignees{/user}","branches_url":"https://api.github.com/repos/futureworkz/today-i-learn/branches{/branch}","tags_url":"https://api.github.com/repos/futureworkz/today-i-learn/tags","blobs_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/futureworkz/today-i-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/futureworkz/today-i-learn/languages","stargazers_url":"https://api.github.com/repos/futureworkz/today-i-learn/stargazers","contributors_url":"https://api.github.com/repos/futureworkz/today-i-learn/contributors","subscribers_url":"https://api.github.com/repos/futureworkz/today-i-learn/subscribers","subscription_url":"https://api.github.com/repos/futureworkz/today-i-learn/subscription","commits_url":"https://api.github.com/repos/futureworkz/today-i-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/futureworkz/today-i-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/futureworkz/today-i-learn/contents/{+path}","compare_url":"https://api.github.com/repos/futureworkz/today-i-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/futureworkz/today-i-learn/merges","archive_url":"https://api.github.com/repos/futureworkz/today-i-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/futureworkz/today-i-learn/downloads","issues_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues{/number}","pulls_url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/futureworkz/today-i-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/futureworkz/today-i-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/futureworkz/today-i-learn/labels{/name}","releases_url":"https://api.github.com/repos/futureworkz/today-i-learn/releases{/id}","created_at":"2015-08-30T02:33:05Z","updated_at":"2015-08-31T10:51:03Z","pushed_at":"2015-11-16T09:37:43Z","git_url":"git://github.com/futureworkz/today-i-learn.git","ssh_url":"git@github.com:futureworkz/today-i-learn.git","clone_url":"https://github.com/futureworkz/today-i-learn.git","svn_url":"https://github.com/futureworkz/today-i-learn","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"futureworkz:master","ref":"master","sha":"a406dad63150811a33e24bed4af6fdfb1913c642","user":{"login":"futureworkz","id":14053351,"avatar_url":"https://avatars.githubusercontent.com/u/14053351?v=3","gravatar_id":"","url":"https://api.github.com/users/futureworkz","html_url":"https://github.com/futureworkz","followers_url":"https://api.github.com/users/futureworkz/followers","following_url":"https://api.github.com/users/futureworkz/following{/other_user}","gists_url":"https://api.github.com/users/futureworkz/gists{/gist_id}","starred_url":"https://api.github.com/users/futureworkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futureworkz/subscriptions","organizations_url":"https://api.github.com/users/futureworkz/orgs","repos_url":"https://api.github.com/users/futureworkz/repos","events_url":"https://api.github.com/users/futureworkz/events{/privacy}","received_events_url":"https://api.github.com/users/futureworkz/received_events","type":"Organization","site_admin":false},"repo":{"id":41614201,"name":"today-i-learn","full_name":"futureworkz/today-i-learn","owner":{"login":"futureworkz","id":14053351,"avatar_url":"https://avatars.githubusercontent.com/u/14053351?v=3","gravatar_id":"","url":"https://api.github.com/users/futureworkz","html_url":"https://github.com/futureworkz","followers_url":"https://api.github.com/users/futureworkz/followers","following_url":"https://api.github.com/users/futureworkz/following{/other_user}","gists_url":"https://api.github.com/users/futureworkz/gists{/gist_id}","starred_url":"https://api.github.com/users/futureworkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futureworkz/subscriptions","organizations_url":"https://api.github.com/users/futureworkz/orgs","repos_url":"https://api.github.com/users/futureworkz/repos","events_url":"https://api.github.com/users/futureworkz/events{/privacy}","received_events_url":"https://api.github.com/users/futureworkz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/futureworkz/today-i-learn","description":"Today-I-Learn (TIL) is inspired by Thoughbot, TIL is a repository for everyone to share what we have learn today.","fork":false,"url":"https://api.github.com/repos/futureworkz/today-i-learn","forks_url":"https://api.github.com/repos/futureworkz/today-i-learn/forks","keys_url":"https://api.github.com/repos/futureworkz/today-i-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/futureworkz/today-i-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/futureworkz/today-i-learn/teams","hooks_url":"https://api.github.com/repos/futureworkz/today-i-learn/hooks","issue_events_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/events{/number}","events_url":"https://api.github.com/repos/futureworkz/today-i-learn/events","assignees_url":"https://api.github.com/repos/futureworkz/today-i-learn/assignees{/user}","branches_url":"https://api.github.com/repos/futureworkz/today-i-learn/branches{/branch}","tags_url":"https://api.github.com/repos/futureworkz/today-i-learn/tags","blobs_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/futureworkz/today-i-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/futureworkz/today-i-learn/languages","stargazers_url":"https://api.github.com/repos/futureworkz/today-i-learn/stargazers","contributors_url":"https://api.github.com/repos/futureworkz/today-i-learn/contributors","subscribers_url":"https://api.github.com/repos/futureworkz/today-i-learn/subscribers","subscription_url":"https://api.github.com/repos/futureworkz/today-i-learn/subscription","commits_url":"https://api.github.com/repos/futureworkz/today-i-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/futureworkz/today-i-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/futureworkz/today-i-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/futureworkz/today-i-learn/contents/{+path}","compare_url":"https://api.github.com/repos/futureworkz/today-i-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/futureworkz/today-i-learn/merges","archive_url":"https://api.github.com/repos/futureworkz/today-i-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/futureworkz/today-i-learn/downloads","issues_url":"https://api.github.com/repos/futureworkz/today-i-learn/issues{/number}","pulls_url":"https://api.github.com/repos/futureworkz/today-i-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/futureworkz/today-i-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/futureworkz/today-i-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/futureworkz/today-i-learn/labels{/name}","releases_url":"https://api.github.com/repos/futureworkz/today-i-learn/releases{/id}","created_at":"2015-08-30T02:33:05Z","updated_at":"2015-08-31T10:51:03Z","pushed_at":"2015-11-16T09:37:43Z","git_url":"git://github.com/futureworkz/today-i-learn.git","ssh_url":"git@github.com:futureworkz/today-i-learn.git","clone_url":"https://github.com/futureworkz/today-i-learn.git","svn_url":"https://github.com/futureworkz/today-i-learn","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5"},"html":{"href":"https://github.com/futureworkz/today-i-learn/pull/5"},"issue":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/issues/5"},"comments":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/futureworkz/today-i-learn/statuses/5b7c67ad983229946eab5bc632efb7d3a381ed94"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jamesfwz","id":6902971,"avatar_url":"https://avatars.githubusercontent.com/u/6902971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesfwz","html_url":"https://github.com/jamesfwz","followers_url":"https://api.github.com/users/jamesfwz/followers","following_url":"https://api.github.com/users/jamesfwz/following{/other_user}","gists_url":"https://api.github.com/users/jamesfwz/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesfwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesfwz/subscriptions","organizations_url":"https://api.github.com/users/jamesfwz/orgs","repos_url":"https://api.github.com/users/jamesfwz/repos","events_url":"https://api.github.com/users/jamesfwz/events{/privacy}","received_events_url":"https://api.github.com/users/jamesfwz/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":21,"deletions":0,"changed_files":1}}