diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 19:29:34 -0400 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 19:29:34 -0400 |
commit | 794e1951e4817c812d5d1897b43df92b91fbd581 (patch) | |
tree | 235cfdcd662554393a2953b030a2ada7080805a8 /unignore | |
parent | 4328510b7beaa80be08a4cd1f9c586ecd9f0669c (diff) |
ignore & unignore
Diffstat (limited to 'unignore')
-rwxr-xr-x | unignore | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/unignore b/unignore new file mode 100755 index 0000000..76097ac --- /dev/null +++ b/unignore @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +if [ $# -ne 1 ]; then + echo "usage: ignore <name>" + exit 1 +fi + +USER="compromyse" + +base_dir="$HOME" +repo="${base_dir}/$1" + +case $repo in + *\.git) + ;; + *) + repo="${repo}.git" + ;; +esac + +if [ ! -d "$repo" ]; then + echo "$repo does not exist" + exit 1 +fi + +cd $repo +git config cgit.ignore 0 |