{"id":20393035,"url":"https://github.com/aichbauer/node-git-commit-range","last_synced_at":"2025-04-12T11:54:51.751Z","repository":{"id":22100615,"uuid":"95290266","full_name":"aichbauer/node-git-commit-range","owner":"aichbauer","description":"Get the git commithash within a Range from-to","archived":false,"fork":false,"pushed_at":"2023-01-05T16:38:48.000Z","size":1680,"stargazers_count":1,"open_issues_count":15,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T19:40:39.923Z","etag":null,"topics":["commit","git","hash","is-git","log","nodejs","range"],"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/aichbauer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-24T10:13:12.000Z","updated_at":"2023-05-10T01:33:13.000Z","dependencies_parsed_at":"2023-01-12T08:30:36.832Z","dependency_job_id":null,"html_url":"https://github.com/aichbauer/node-git-commit-range","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aichbauer","download_url":"https://codeload.github.com/aichbauer/node-git-commit-range/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565051,"owners_count":21125415,"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":["commit","git","hash","is-git","log","nodejs","range"],"created_at":"2024-11-15T03:47:06.072Z","updated_at":"2025-04-12T11:54:51.710Z","avatar_url":"https://github.com/aichbauer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-range\n\n[![Build Status](https://travis-ci.org/aichbauer/node-git-commit-range.svg?branch=master)](https://travis-ci.org/aichbauer/node-git-commit-range)\n[![Build status](https://ci.appveyor.com/api/projects/status/2o83rprgkyfjoxqv?svg=true)](https://ci.appveyor.com/project/rudolfsonjunior/node-git-commit-range)\n[![Coverage Status](https://coveralls.io/repos/github/aichbauer/node-git-commit-range/badge.svg?branch=master)](https://coveralls.io/github/aichbauer/node-git-commit-range?branch=master)\n\n\u003e Get the git commithash within a Range from-to\n\n## Installation\n\n```sh\n$ npm i git-commit-range --save\n```\nor\n```sh\n$ yarn add git-commit-range\n```\n\n## Usage\n\nReturns an array with the commithashes from a specified commit to another specified commit.\n\n```js\nconst gitCommitRange = require('git-commit-range');\n\ngitCommitRange(); // returns all commits (complete hash) since the beginning of the repo of process.cwd()\n\ngitCommitRange({\n  path: 'my/repo',\n  from: '15be93c31ad87c9ced03ba0b60fc2fb55c977c5c',\n  to: '32b940b014322834966d79b109d2d7adec8e3ea3',\n  include: false,\n}); // returns all commits (complete hash) between from and to EXCLUDING from and to, of the path 'my/repo'\n\ngitCommitRange({\n  path: 'my/repo',\n  from: '15be93c31ad87c9ced03ba0b60fc2fb55c977c5c',\n  to: '32b940b014322834966d79b109d2d7adec8e3ea3',\n}); // returns all commits (complete hash) between from and to INCLUDING from and to, of the path 'my/repo'\n\ngitCommitRange({\n  path: 'my/repo',\n  from: '15be93c31ad87c9ced03ba0b60fc2fb55c977c5c',\n  to: '32b940b014322834966d79b109d2d7adec8e3ea3',\n  type: 'text',\n}); // returns all commits as text between from and to INCLUDING from and to, of the path 'my/repo'\n\ngitCommitRange({\n  path: 'my/repo',\n  from: '15be93c31ad87c9ced03ba0b60fc2fb55c977c5c',\n  to: '32b940b014322834966d79b109d2d7adec8e3ea3',\n  short: true,\n}); // returns all commits (short hash) between from and to INCLUDING from and to, of the path 'my/repo'\n\ngitCommitRange({\n  path: 'my/repo',\n  from: '15be93c31ad87c9ced03ba0b60fc2fb55c977c5c',\n  to: '32b940b014322834966d79b109d2d7adec8e3ea3',\n  includeMerges: false,\n}); // returns all commits between from and to EXCLUDING all merge commits, of the path 'my/repo'\n```\n\n## LICENSE\n\nMIT © Lukas Aichbauer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-commit-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faichbauer%2Fnode-git-commit-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-commit-range/lists"}