{"id":14109011,"url":"https://github.com/alexcorre/git-blame","last_synced_at":"2025-08-01T07:33:27.776Z","repository":{"id":16304118,"uuid":"19052925","full_name":"alexcorre/git-blame","owner":"alexcorre","description":"Plugin for Atom Editor. Toggle git-blame annotations for the current file in the gutter.","archived":false,"fork":false,"pushed_at":"2018-11-07T16:05:57.000Z","size":2239,"stargazers_count":98,"open_issues_count":57,"forks_count":58,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-17T00:06:56.681Z","etag":null,"topics":["atom","atom-package","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexcorre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-23T01:38:07.000Z","updated_at":"2023-09-28T07:36:15.000Z","dependencies_parsed_at":"2022-09-14T22:52:09.240Z","dependency_job_id":null,"html_url":"https://github.com/alexcorre/git-blame","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcorre%2Fgit-blame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcorre%2Fgit-blame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcorre%2Fgit-blame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcorre%2Fgit-blame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcorre","download_url":"https://codeload.github.com/alexcorre/git-blame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228351583,"owners_count":17906508,"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":["atom","atom-package","javascript"],"created_at":"2024-08-14T10:01:59.573Z","updated_at":"2024-12-05T18:30:36.606Z","avatar_url":"https://github.com/alexcorre.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# git-blame\n\n\u003e Toggle git-blame annotations in Atom.\n\n[![Travis](https://img.shields.io/travis/alexcorre/git-blame.svg)](https://travis-ci.org/alexcorre/git-blame)\n[![apm](https://img.shields.io/apm/v/git-blame.svg)](https://atom.io/packages/git-blame)\n[![apm](https://img.shields.io/apm/dm/git-blame.svg)](https://atom.io/packages/git-blame)\n\n![screenshot](/images/screenshot2.png?raw=true)\n\n## Usage\n\nUse `ctrl-b` to activate blame. Alternatively, right click the file you want to blame and select `Toggle Git Blame` from the dropdown.\n\n![right-click-activate](https://raw.githubusercontent.com/alexcorre/git-blame/master/images/right-click-activate.png)\n\n### See the revision diff\n\nClick on the revision hash in the gutter to visit the configured repository diff site. Hosts supported out of the box are:\n\n* [GitHub](https://github.com/)\n* [Bitbucket](https://bitbucket.org/)\n* [GitLab](https://gitlab.com/)\n\nIf the remote repo has a URL we don't recognize, or if there is no remote named\n`origin`, the commit hash will be copied to the clipboard.\nCustom remotes can be set globally via options. See below.\n\n## Options\n\n### Ignore White Space Diffs\n\nIf this option is selected, the `git blame` command will be run with `-w` option.\n\n### Show First Names\n\nIf this option is selected, only the first word of the author's name will be displayed. (If both Show First Names and Show Last Names are enabled, the entire author name will be displayed, regardless of whether it contains only two name parts).\n\n### Show Last Names\n\nIf this option is selected, only the last word of the author's name will be displayed. (If both Show First Names and Show Last Names are enabled, the entire author name will be displayed, regardless of whether it contains only two name parts).\n\n### Date Format String\n\nDefault date format is `YYYY-MM-DD`. This feature is backed by [moment.js](http://momentjs.com/). Any formats [supported by moment](http://momentjs.com/docs/#/displaying/format/) are valid here.\n\n### Color commit authors\nIf this option is selected, the commit authors will appear with a unique color to make them easily recognisable.\n\n### Custom Remote Repo Url\nThis plugin will first check to see if your repo is backed by **GitHub**, **Bitbucket**, or **GitLab** so nothing is required if your repo is hosted on one of these.\n\n\nIf its not, you can easily set a custom revision URL string like so:\n- From the settings view go to settings for this package *Git Blame*\n- Check the box for \"Use Custom Url Template If Standard Remotes Fail\"\n- Set your url format string in the box labeled Custom Commit Url String\n\n![url-settings](https://raw.githubusercontent.com/alexcorre/git-blame/master/images/url-settings.png)\n\nThe URL string should contain the following three placeholder variables wrapped in underscore template delimiters like so: `\u003c%- variable %\u003e`.\n- `project` - Will be replaced with the name of the project in your remote git repository. For this repo it would be `alexcorre`.\n- `repo` - Will be replaced with the name of the repository. For this repo it would be `git-blame`.\n- `revision` - Will be replaced with the full git revision hash you clicked on.\n\nI'll use github as an example. Its already supported out of the box, but if it wasn't its custom url string would be:\n\n```\nhttps://github.com/\u003c%- project %\u003e/\u003c%- repo %\u003e/commit/\u003c%- revision %\u003e\n```\nSo when you clicked on hash revision 12345 in this git-blame repository, you would visit the following url:\n\n```\nhttps://github.com/alexcorre/git-blame/commit/12345\n```\n\nYou can also set a custom URL in your git config. If present, it will be used insted of the one in the package settings.\nYou can add or change it with this command:\n```bash\ngit config --local atom-git-blame.repositoryUrlTemplate \"http://my_server/gitweb/?p=\u003c%- repo %\u003e.git;a=commit;h=\u003c%- revision %\u003e\"\n```\n\nOr by edit your `.git/config` and add an entry like this:\n```ini\n[atom-git-blame]\n\trepositoryUrlTemplate = \"http://my_server/gitweb/?p=\u003c%- repo %\u003e.git;a=commit;h=\u003c%- revision %\u003e\"\n```\n\n## Release History\n\nThis project uses [standard-version](https://github.com/conventional-changelog/standard-version). Commit messages should use these [conventions](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md). `fix`, `feat`, and `perf` commits will show in the [CHANGELOG.md](CHANGELOG.md) generated upon release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcorre%2Fgit-blame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcorre%2Fgit-blame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcorre%2Fgit-blame/lists"}