1.1.9 • Published 5 months ago

git-updated v1.1.9

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
5 months ago

GIT UPDATED

GitHub npm

About

git-updated is a Node.js module that automatically updates a JSON file with the last modified dates of files in your Git repository. This tool is designed to run as a Git pre-push hook, ensuring your file modification records are always up-to-date with your latest commits.

Features

  • Automatic Tracking: Automatically track the last modified dates of all files in your Git repository.
  • Zero Configuration: Install the package, and you're all set – no additional setup required.
  • Non-Intrusive: Works seamlessly with your existing Git workflow.

Installation

Install git-updated using npm:

npm install simple-git-hooks
npm install git-updated

That's it! git-updated will automatically set up a pre-push Git hook in your repository.

How It Works

Once installed, git-updated adds a pre-push hook to your Git repository. Before each push, it generates or updates a .git-updated/file_dates.json file in your repository root. This file contains a JSON object mapping each file in your repository to its last modified date, based on your Git commit history.

Structure of the JSON File

The file_dates.json file has the following structure:

{
    "src/index.js": "2023-12-09 07:37:33",
    "src/utils.js": "2023-12-09 07:37:33",
    "README.md": "2023-12-09 07:37:33",
    "package.json": "2023-12-09 07:37:33"
}

Compatibility

git-updated is designed to work with any standard Git repository. It requires Node.js to be installed in your environment.

Customization

While git-updated is designed to work out of the box with no configuration, you can customize the behavior by editing the .husky/pre-push file in your project.

Contributing

Contributions to git-updated are welcome! Please submit pull requests, report issues, or request features.

License

git-updated is using Unlicense.

1.1.9

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago