{"id":13862308,"url":"https://github.com/arnested/emacs-git-attr","last_synced_at":"2025-04-06T12:31:43.083Z","repository":{"id":141202820,"uuid":"119205590","full_name":"arnested/emacs-git-attr","owner":"arnested","description":"Expose gitattributes to emacs buffers","archived":false,"fork":false,"pushed_at":"2019-11-09T15:12:44.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T23:11:18.579Z","etag":null,"topics":["emacs","emacs-lisp","gitattributes","hacktoberfest","linguist"],"latest_commit_sha":null,"homepage":"https://melpa.org/#/git-attr","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnested.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-01-27T21:51:30.000Z","updated_at":"2023-06-10T07:22:50.000Z","dependencies_parsed_at":"2024-04-13T18:04:31.402Z","dependency_job_id":null,"html_url":"https://github.com/arnested/emacs-git-attr","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Femacs-git-attr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Femacs-git-attr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Femacs-git-attr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Femacs-git-attr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnested","download_url":"https://codeload.github.com/arnested/emacs-git-attr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484303,"owners_count":20946384,"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":["emacs","emacs-lisp","gitattributes","hacktoberfest","linguist"],"created_at":"2024-08-05T06:01:41.617Z","updated_at":"2025-04-06T12:31:42.749Z","avatar_url":"https://github.com/arnested.png","language":"Emacs Lisp","readme":"[![MELPA Stable](https://stable.melpa.org/packages/git-attr-badge.svg)](https://stable.melpa.org/#/git-attr)\n[![MELPA](https://melpa.org/packages/git-attr-badge.svg)](https://melpa.org/#/git-attr)\n\n# Expose gitattributes to emacs buffers\n\nThis tool will let you use [git attributes](https://git-scm.com/docs/gitattributes) in Emacs buffers.\n\nIn example the following will get the value of a `foo` git attribute for the file associated with the current buffer:\n\n```elisp\n(git-attr-get \"foo\")\n```\n\nThe `git-attr-get` function will return\n\n* `t` for git attributes with the value \"set\"\n* `nil` for git attributes with the value \"unset\"\n* `'undecided` for git attributes that are \"unspecified\"\n* and the value itself if the git attribute is set to a value\n\n## git-attr-linguist\n\nThe `git-attr-linguist` library adds some functions for the git attributes [`linguist-generated`](https://github.com/github/linguist#generated-code) and [`linguist-vendored`](https://github.com/github/linguist#vendored-code).\n\nIt adds a `find-file-hook` and upon visiting a file puts the buffer into `git-attr-linguist-generated-mode` and/or `git-attr-linguist-vendored-mode` minor modes.\n\nBoth minor modes just puts the buffer into `read-only-mode`.\n","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnested%2Femacs-git-attr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnested%2Femacs-git-attr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnested%2Femacs-git-attr/lists"}