dot dot dotfiles
at main 15 lines 369 B view raw
1#!/usr/bin/bash 2 3# The "-x" flag on git clean overrides normal .gitignore rules, so lists 4# everything. Default is to obey .gitignore and only list others 5 6if [ "$1" == "" ]; then 7 git clean -ndf 8elif [ "$1" == "out" ]; then 9 git clean -ndfx 10elif [ "$1" == "in" ]; then 11 git ls-tree -r HEAD $2 12else 13 echo "git list only accepts 'in' or 'out'" 14 exit 1 15fi