#!/usr/bin/env bash
#
# List configured GIT branches.
# Copyright (c) Steven Cole 2005
#
# Takes no parameters.

. ${COGITO_LIB}cg-Xlib

mkdir -p $_git/branches
[ "$(find $_git/branches -follow -type f)" ] \
	|| die "List of branches is empty. See cg-branch-add."

cd $_git/branches
for branch in *; do
	echo -n $branch
	echo -ne "\t"
	cat $branch
done
