App-gitwrap
view release on metacpan or search on metacpan
script/gitwrap view on Meta::CPAN
executing git (due to C<exit 0> clause). But if the hook fails again during
actual pre-commit phase in git, the commit will be aborted.
=item * Touch last commit/status timestamp
I update a record in a database whenever a repository is committed into or
status-ed. The first can be done with a C<post-commit> hook, but for the second
there is no hook provided by git. I do this to speed up or prioritize
repositories that are more recently modified/accessed in L<Git::Bunch>: When
there are hundreds/thousand+ git repositories in a gitbunch, and only a few of
them need to be synchronized, using these timestamps can dramatically shorten
the amount of time to determine which repositories need to be included, because
we avoid having to 'git status' every single repository.
To do this, in F<gitwrap.conf>:
before_commit_cmd = reposdb touch --commit-time
before_status_cmd = reposdb touch --status-time
Note: see also L<reposdb>.
( run in 0.246 second using v1.01-cache-2.11-cpan-0d8aa00de5b )