14 lines
300 B
Bash
14 lines
300 B
Bash
mine() {
|
|
# fetch user from args
|
|
local gitUser=$GIT_USER
|
|
# Get the user defined in the local config
|
|
if [ -z "$gitUser" ]; then
|
|
gitUser=$(git config --get user.name)
|
|
echo "Fetching user from git config: $gitUser"
|
|
fi
|
|
echo "Git user: $gitUser"
|
|
|
|
# get my commits
|
|
git log --author="$gitUser"
|
|
}
|