GITCVS::log
This module provides very crude logging with a similar interface to Log::Log4perl
Creates a new log object, optionally you can specify a filename here to indicate the file to log to. If no log file is specified, you can specify one later with method setfile, or indicate you no longer want logging with method nofile.
Until one of these methods is called, all log calls will buffer messages ready to write out.
This methods takes a filename, and attempts to open that file as the log file. If successful, all buffered data is written out to the file, and any further logging is written directly to the file.
This method indicates no logging is going to be used. It flushes any entries in the internal buffer, and sets a flag to ensure no further data is put there.
Internal method. Returns true if the log file is open, false otherwise.
These four methods are wrappers to _log. They provide the actual interface for logging data.
This is an internal method called by the logging functions. It generates a timestamp and pushes the logged line either to file, or internal buffer.
This method simply closes the file handle if one is open
This function takes a filename (with path) argument and returns a hashref of metadata for that file.
this function takes a commithash and returns the commit message for that commit
This function takes a filename (with path) argument and returns an arrayofarrays containing revision,filehash,commithash ordered by revision descending
This function takes a filename (with path) argument and returns an arrayofarrays containing revision,filehash,commithash ordered by revision descending.
This version of gethistory skips deleted entries -- so it is useful for annotate. The 'dense' part is a reference to a '--dense' option available for git-rev-list and other git tools that depend on it.
from Array::PAT - mimics the in_array() function found in PHP. Yuck but works for small arrays.
an alternative to `command` that allows input to be passed as an array to work around shell problems with weird characters in arguments
create a string from a directory name that is suitable to use as part of a filename, mainly by converting all chars except \w.- to _
create a string from a that is suitable to use as part of an SQL table name, mainly by converting all chars except \w to _