git-last-changed-files
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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

import { lastChangesSync } from 'git-last-changed-files';
 
lastChangesSync(optionsOptions)string[]

API

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

Readme

Keywords

none

Package Sidebar

Install

npm i git-last-changed-files

Weekly Downloads

2

Version

2.1.1

License

MIT

Unpacked Size

13.5 kB

Total Files

7

Last publish

Collaborators

  • iamthes