Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unlight/git-last-changed-files
Get last changed files from git history commits
https://github.com/unlight/git-last-changed-files
changed-file changes git history
Last synced: 7 days ago
JSON representation
Get last changed files from git history commits
- Host: GitHub
- URL: https://github.com/unlight/git-last-changed-files
- Owner: unlight
- License: mit
- Created: 2018-05-26T20:58:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-01T14:31:46.000Z (over 6 years ago)
- Last Synced: 2024-04-26T02:44:03.110Z (8 months ago)
- Topics: changed-file, changes, git, history
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-last-changed-files
Get last changed files from git history commits
Uses `git diff-tree` under the hood.INSTALL
---
```
npm install git-last-changed-files
```USAGE
---
```ts
import { lastChangesSync } from 'git-last-changed-files';lastChangesSync(options: Options): string[]
```API
---
```ts
type Options = {
/**
* Filter files by this anymatch.Matcher.
* If not set match to any file.
* https://github.com/micromatch/anymatch#anymatch-matchers-teststring-returnindex-startindex-endindex
* Default: null
*/
test?: anymatch.Matcher;
/**
* Page size for checking git history.
* Default: 10
*/
size?: number;
/**
* Begin from commit.
*/
from?: number;
/**
* End to commit.
*/
to?: number;
/**
* See changes recursively (flag `-r`)
* Default: true
*/
recursive?: boolean;
};
```CHANGELOG
---
See [CHANGELOG.md](CHANGELOG.md)