]>
git.madduck.net Git - code/vcsh.git/blobdiff - vcsh
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
init
git remote add origin "$GIT_REMOTE"
git config branch.master.remote origin
init
git remote add origin "$GIT_REMOTE"
git config branch.master.remote origin
git merge origin/master
}
git merge origin/master
}
old_dir="$PWD"
cd "$HOME"
use
old_dir="$PWD"
cd "$HOME"
use
export GIT_WORK_TREE="$HOME"
mkdir -p "$GIT_WORK_TREE"
cd "$GIT_WORK_TREE" || fatal "could not enter '$GIT_WORK_TREE'" 11
export GIT_WORK_TREE="$HOME"
mkdir -p "$GIT_WORK_TREE"
cd "$GIT_WORK_TREE" || fatal "could not enter '$GIT_WORK_TREE'" 11
for i in "$VCSH_BASE"/*.git; do
echo $(basename "$i" .git)
done
}
for i in "$VCSH_BASE"/*.git; do
echo $(basename "$i" .git)
done
}
use
$VCSH_EXTERNAL_COMMAND
}
use
$VCSH_EXTERNAL_COMMAND
}
use
# Switching directory as this has to be executed from $HOME to be of any use.
# Going back into old directory at the end in case `vcsh use` is reactivated.
use
# Switching directory as this has to be executed from $HOME to be of any use.
# Going back into old directory at the end in case `vcsh use` is reactivated.
export VCSH_COMMAND="$1"
export VCSH_REPO_NAME="$2"
export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
export VCSH_COMMAND="$1"
export VCSH_REPO_NAME="$2"
export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
- [ "$1 " = 'run' ] && shift 2 && export VCSH_EXTERNAL_COMMAND="$@"
- [ "$1" = 'seed-gitignore' ] && export VCSH_COMMAND=seed_gitignore
+ [ "$VCSH_COMMAND " = 'run' ] && shift 2 && export VCSH_EXTERNAL_COMMAND="$@"
+ [ "$VCSH_COMMAND" = 'seed-gitignore' ] && export VCSH_COMMAND='seed_gitignore'
elif [ "$1" = 'list' ]; then
export VCSH_COMMAND="$1"
elif [ -n "$1" ]; then
elif [ "$1" = 'list' ]; then
export VCSH_COMMAND="$1"
elif [ -n "$1" ]; then