#!/usr/bin/env bash
#
# Add new file to a GIT repository.
# Copyright (c) Petr Baudis, 2005
#
# Takes a list of file names at the command line, and schedules them
# for addition to the GIT repository at the next commit.

. cg-Xlib

[ "$1" ] || die "usage: cg-add FILE..."

update-cache --add -- "$@"
