We are thankfully no longer using svn

This commit is contained in:
James Patrick 2024-08-09 11:13:41 -04:00
parent b1d2d0c04e
commit c2fb2573be
No known key found for this signature in database

View File

@ -12,46 +12,4 @@ switch () {
popd popd
} }
svn_stash() {
if [ ! -d .svn ]; then
echo "Not at ROOT of SVN directory."
return
fi
if [ ! -d .svn/stash ]; then
echo "creating .svn/stash directory"
mkdir -p .svn/stash/
fi
if [ -z "$1" ]; then
echo "Missing stash name argument"
return
fi
stash_file="$PWD/.svn/stash/${@[-1]}"
if [[ "$1" == "pop" ]] ; then
if [ ! -f $stash_file ]; then
echo "Cannot find stash: $stash_file"
return
fi
patch -p0 < $stash_file
elif [[ "$1" == "list" ]] ; then
ls -1 .svn/stash/
else
if [ -f $stash_file ]; then
echo "stash already exist with that name: $stash_file"
return
fi
echo "stash file can be found at $stash_file"
svn diff > $stash_file && svn revert -R .
fi
}
eval "$(rbenv init -)" eval "$(rbenv init -)"
if [ -f ~/.config/op/plugins.sh ] ; then
# source ~/.config/op/plugins.sh
else
echo "Could not find op plugin. Has this been loaded?"
fi