Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)