{"id":19291862,"url":"https://github.com/dmnd/git-diff-blame","last_synced_at":"2025-04-22T06:31:50.339Z","repository":{"id":13099038,"uuid":"15780473","full_name":"dmnd/git-diff-blame","owner":"dmnd","description":"🕵  Display a diff alongside blame info like author and commit","archived":false,"fork":false,"pushed_at":"2022-02-02T12:11:12.000Z","size":7,"stargazers_count":108,"open_issues_count":8,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T20:31:41.142Z","etag":null,"topics":["blame","diff","git"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmnd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-09T21:43:25.000Z","updated_at":"2025-02-27T07:08:15.000Z","dependencies_parsed_at":"2022-07-21T16:18:47.515Z","dependency_job_id":null,"html_url":"https://github.com/dmnd/git-diff-blame","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnd%2Fgit-diff-blame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnd%2Fgit-diff-blame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnd%2Fgit-diff-blame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnd%2Fgit-diff-blame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmnd","download_url":"https://codeload.github.com/dmnd/git-diff-blame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250183247,"owners_count":21388682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blame","diff","git"],"created_at":"2024-11-09T22:28:16.620Z","updated_at":"2025-04-22T06:31:50.123Z","avatar_url":"https://github.com/dmnd.png","language":"Perl","readme":"## git diff-blame\n\nAnnotates each line in a diff hunk with author and commit information like blame.\n\n## Example:\n\n    $ git diff-blame HEAD^\n    diff --git c/git-diff-blame w/git-diff-blame\n    --- c/git-diff-blame\n    +++ w/git-diff-blame\n    ed3dc1d5 (Desmond Brand 2014-01-09 12:08:57 -0800 52)           my $n_end = $n_ofs + $n_cnt - 1;\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 53)           if (!$create) {\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 54)               open($pre, '-|', 'git', 'blame', '-M', \"-L$o_ofs,$o_end\",\n    ed3dc1d5 (Desmond Brand 2014-01-09 12:08:57 -0800 55)   -                \"-l\",\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 56)                    $oldrev, '--', $prefilename) or die;\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 57)           }\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 58)           if (!$delete) {\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 59)               if ($newrev) {\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 60)                   open($post, '-|', 'git', 'blame', '-M', \"-L$n_ofs,$n_end\",\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 61)   -                    \"-l\",\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 62)                        $newrev, '--', $postfilename) or die;\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 63)               } else {\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 64)                   open($post, '-|', 'git', 'blame', '-M', \"-L$n_ofs,$n_end\",\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 65)   -                    \"-l\",\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 66)                        '--', $postfilename) or die;\n    15f5a1f9 (Desmond Brand 2014-01-09 12:46:50 -0800 67)               }\n    ^275a5e3 (Desmond Brand 2014-01-09 12:04:26 -0800 68)           }\n\nOriginal version by @toddlipcon taken [from here](https://github.com/toddlipcon/tlipcon-bin/blob/master/git-diff-blame).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnd%2Fgit-diff-blame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmnd%2Fgit-diff-blame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnd%2Fgit-diff-blame/lists"}