minor fixups to some non-core programs

(following a bit of a doc shakeup)
This commit is contained in:
Sitaram Chamarty 2012-11-22 15:59:13 +05:30
parent cd838411fa
commit 7cec71b0ef
4 changed files with 6 additions and 2 deletions

0
src/lib/Gitolite/Triggers/Alias.pm Executable file → Normal file
View file

3
src/lib/Gitolite/Triggers/CpuTime.pm Executable file → Normal file
View file

@ -10,6 +10,7 @@ use warnings;
# cpu and elapsed times for gitolite+git operations # cpu and elapsed times for gitolite+git operations
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# uncomment the appropriate lines in the rc file to enable this
# Ideally, you will (a) write your own code with a different filename so later # Ideally, you will (a) write your own code with a different filename so later
# gitolite upgrades won't overwrite your copy, (b) add appropriate variables # gitolite upgrades won't overwrite your copy, (b) add appropriate variables
@ -18,8 +19,6 @@ use warnings;
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
my $start_time; my $start_time;
# this trigger is not yet documented; it gets called at the start and does not
# receive any arguments.
sub input { sub input {
_warn "something wrong with the invocation of CpuTime::input" if $ENV{GL_TID} ne $$; _warn "something wrong with the invocation of CpuTime::input" if $ENV{GL_TID} ne $$;
$start_time = [ Time::HiRes::gettimeofday() ]; $start_time = [ Time::HiRes::gettimeofday() ];

View file

@ -9,6 +9,8 @@ use warnings;
# setting a repo specific umask # setting a repo specific umask
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# this is for people who are too paranoid to trust e.g., gitweb's repo
# exclusion logic, but not paranoid enough to put it on a different server
=for usage =for usage

View file

@ -3,6 +3,9 @@ package Gitolite::Triggers::Shell;
# usage notes: this module must be loaded first in the INPUT trigger list. Or # usage notes: this module must be loaded first in the INPUT trigger list. Or
# at least before Mirroring::input anyway. # at least before Mirroring::input anyway.
# documentation is in the ssh troubleshooting and tips document, under the
# section "giving shell access to gitolite users"
use Gitolite::Rc; use Gitolite::Rc;
use Gitolite::Common; use Gitolite::Common;