Install

With make

; make

Files will be installed to /usr/local/bin. If you want to install other place, edit config.mk before running make.

Makefile is compatible with both GNU make and BSD make.

With basher

; basher install weakish/git-ci-mtime

Manually

Copy git-ci-mtime.sh to $PATH/git-ci-mtime.

Usage

git ci-mtime FILE_TO_COMMIT [--more-git-options]

Equivalent git commands:

git add FILE_TO_COMMIT
git commit --date 'mtime of FILE' FILE

You can pass more git options after FILE:

git ci-mtime FILE --gpg-sign -m 'accept any options git commit accepts'

You can commit multiple files:

License

0BSD