NAME
kgb-bot - an IRC bot helping collaborative work
SYNOPSYS
kgb-bot [--config file] [--foreground] [--simulate file]
OPTIONS
- --config file
-
Specify configuration file to load. Default is
/etc/kgb/kgb.conf
. - --foreground
-
Do not detach from console, print log messages to STDERR and do not become a daemon, useful for debugging.
- --simulate file
-
Do not connect to IRC. Instead, output each notification line to the given file, like:
#chan repo user branch revision module changed-paths #chan repo commit message line 1 #chan repo commit message line 2
There are no colour codes in the output.
detect_common_dir changes
Given an arrayref of changes (instances of APP::KGB::Change), detects the longest path that is common to all of them. All the changes' paths are trimmed from the common part.
Example:
foo/b
foo/x
foo/bar/a
would return 'foo' and the paths would be trimmed to
b
x
bar/a