{"id":13565503,"url":"https://github.com/anvaka/git-also","last_synced_at":"2025-05-07T21:09:18.780Z","repository":{"id":57251067,"uuid":"74146791","full_name":"anvaka/git-also","owner":"anvaka","description":"For a `file` in your git repository, prints other files that are most often committed together","archived":false,"fork":false,"pushed_at":"2025-04-26T19:35:08.000Z","size":248,"stargazers_count":185,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T21:09:14.325Z","etag":null,"topics":[],"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/anvaka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-18T16:23:54.000Z","updated_at":"2025-04-26T19:35:12.000Z","dependencies_parsed_at":"2024-03-16T23:57:05.780Z","dependency_job_id":"56d676ab-11e6-4e34-a7c2-8a1820665dc9","html_url":"https://github.com/anvaka/git-also","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.05714285714285716,"last_synced_commit":"a4ef4612c2f3a72f2b29c3241b77c88057e95d2d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvaka%2Fgit-also","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvaka%2Fgit-also/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvaka%2Fgit-also/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anvaka%2Fgit-also/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anvaka","download_url":"https://codeload.github.com/anvaka/git-also/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954410,"owners_count":21830905,"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":[],"created_at":"2024-08-01T13:01:48.606Z","updated_at":"2025-05-07T21:09:18.755Z","avatar_url":"https://github.com/anvaka.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# git-also\n\nFor a `file` in your git repository, prints other files that are most often committed together.\n\n![demo](https://raw.githubusercontent.com/anvaka/git-also/master/docs/demo.gif)\n\nThis is a demo of `git-also` applied on three.js library:\n\n```\n\u003e src/core/Object3D.js most often committed with:\n\n# together\tSimilarity\tName\n        51\t      0.22\tsrc/core/Geometry.js\n        48\t      0.21\tsrc/renderers/WebGLRenderer.js\n        45\t      0.19\tbuild/Three.js\n        43\t      0.18\tsrc/materials/Material.js\n        36\t      0.15\tbuild/custom/ThreeWebGL.js\n        36\t      0.15\tsrc/cameras/Camera.js\n        35\t      0.15\tbuild/custom/ThreeCanvas.js\n        34\t      0.15\tbuild/custom/ThreeSVG.js\n        34\t      0.15\tbuild/custom/ThreeDOM.js\n        32\t      0.14\tsrc/core/BufferGeometry.js\n```\n\nThis means that file `Object3D.js` is most often committed with `Geometry.js` -\nthey both appear together in `51` commits! By looking at this output\nyou can immediately see core pieces of three.js.\n\nThe `Similarity` column shows [`Jaccard index`](https://en.wikipedia.org/wiki/Jaccard_index)\nof two files.\n\n# usage\n\nInstall the package with npm:\n\n```\nnpm install -g git-also\n```\n\nRun it from command line inside your git repository:\n\n```\ngit also \u003cfile\u003e\n```\n\nIf you run it without arguments it prints help:\n\n```\n  Usage: git-also [options] \u003cfile\u003e\n\n  For a \u003cfile\u003e in your git repository prints other files that are most often committed together\n\n  Options:\n\n    -h, --help       output usage information\n    -V, --version    output the version number\n    -c, --count \u003cn\u003e  Print top N other files. N is 10 by default\n```\n\n# motivation\n\nFiles are often committed together when developers improve code or add new features.\nThis information could serve as a hint when you are exploring new code:\n\n* What are related file to this file?\n* Where else should I look when I fix bugs in this file?\n\n# license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanvaka%2Fgit-also","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanvaka%2Fgit-also","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanvaka%2Fgit-also/lists"}