GIT module

This module subclasses the Files module for Git repository.

See Files POD for method information.

Methods are sorted in the same order as in the super-class.

Note:

_git_cmd ($cmd, @args)

_git_cmd returns a handle to a pipe where the command outputs its result.

  1. $cmd

    a string containing the Git command

  2. @args

    a list containing the command arguments

The command is processed after untainting the arguments.

_git_oneline ($cmd, @args)

_git_oneline is a wrapper function for _git-cmd when a single line result is expected.

  1. $cmd

    a string containing the Git command

  2. @args

    a list containing the command arguments

The function passes its arguments to _git_cmd and closes the pipe after reading one line. This line is returned as a string.

Note: