darkrc/bin/git-as

9 lines
326 B
Bash
Executable file

#!/bin/sh
user=$1
shift 1
export GIT_AUTHOR_NAME="$(git config user.$user.name)"
export GIT_AUTHOR_EMAIL="$(git config user.$user.email)"
export GIT_COMMITTER_NAME="$(git config user.$user.name)"
export GIT_COMMITTER_EMAIL="$(git config user.$user.email)"
echo "Running as $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"
git "$@"