gitup.conf
—
Configuration file for gitup(1).
The gitup.conf
file stores configuration options and
controls the behavior of gitup(1).
This file contains an arbitrary number of sections, each of which
can be passed as the first command line argument to gitup(1). Within each
section, individual parameters are stored as key/value pairs.
Lines beginning with a '#' are ignored.
Additional, user defined sections can be added to
gitup.conf
as needed.
When gitup(1) is run, the options in the
defaults section are assigned first, followed by the
options in the desired section (each of which will supersede any previously
assigned default values), followed lastly by any command line options.
The following options are currently supported by
gitup.conf
and can be added to any section:
host
- The hostname/IP address of the server.
port
- The port on the server to connect to.
proxy_host
- The hostname/IP address of the proxy server (if required).
proxy_port
- The port on the proxy server to connect to (if required).
proxy_username
- The username of the account used to access the proxy server (if
required).
proxy_password
- The password of the account used to access the proxy server (if
required).
source_address
- The source IP address on the local machine to use.
repository_path
- The repository path to use.
branch
- The repository branch to use.
target_directory
- The local directory to store your copy of the repository.
ignores
- An array of directories in the local tree that should be ignored only when
deleting files. Any changes to upstream files in these directories will be
pulled down and merged.
low_memory
- Low memory mode reduces memory usage by storing temporary object data to
disk.
verbosity
- How much of the transfer details to display. 0 = no output, 1 = show only
names of the updated files, 2 = also show commands sent to the server and
additional debugging information.
work_directory
- The location to load/save the known remote files list.
With the following configuration options defined in
gitup.conf
{
"defaults" : {
"host" : "github.com",
"port" : "443",
"verbosity" : "1",
"work_directory" : "/var/db/gitup",
},
"ports" : {
"repository_path" : "/freebsd/freebsd-ports.git",
"branch" : "master",
"target_directory" : "/usr/ports",
"ignores" : [
"distfiles",
"packages",
],
},
}
Executing:
gitup ports
from the command line would result in a copy of the
freebsd-ports/master branch downloaded to /usr/ports. If /usr/ports does not
exist, the repository is cloned. If it does exist and /var/db/gitup/ports
exists, the latest commit to the repository is pulled down and the contents
of /usr/ports/distfiles and /usr/ports/packages are ignored when removing
stale files and directories.
- /usr/local/etc/gitup.conf
- Default location of the
gitup.conf
configuration
file.
John Mehr <jmehr@umn.edu>