config/git: fix repo handling
This commit is contained in:
parent
828b17b9c0
commit
c6206d3fc1
|
@ -111,12 +111,13 @@
|
||||||
lg = lgr HEAD @{push}
|
lg = lgr HEAD @{push}
|
||||||
lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges
|
lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges
|
||||||
lp = log -p --date=local # Like --full-diff
|
lp = log -p --date=local # Like --full-diff
|
||||||
my = lo --author "xeru\\|anek"
|
my = lo --author "xeru\\|anek\\|melonion"
|
||||||
|
|
||||||
standup = my --since yesterday --all
|
standup = my --since yesterday --all
|
||||||
co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++'
|
co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++'
|
||||||
when = !git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates
|
when = !git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates
|
||||||
|
|
||||||
|
tags = !sh -c "git for-each-ref --color=always --format='%(color:yellow)%(tag)%(color:default)%09 %(subject) %(color:green)(%(taggerdate:format:%Y-%m-%d))' refs/tags | sort -V | column -s $'\t' -t"
|
||||||
find = log --patch --all --full-history # Find a filename in all git knows
|
find = log --patch --all --full-history # Find a filename in all git knows
|
||||||
ref = reflog show --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset'
|
ref = reflog show --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset'
|
||||||
refg = log --reflog --graph --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset'
|
refg = log --reflog --graph --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset'
|
||||||
|
|
|
@ -14,12 +14,13 @@ case "$1" in
|
||||||
echo "$1"
|
echo "$1"
|
||||||
exit;;
|
exit;;
|
||||||
esac
|
esac
|
||||||
case $1 in
|
host=$1
|
||||||
|
case $host in
|
||||||
(socha) user=software-challenge; host=git@github.com;;
|
(socha) user=software-challenge; host=git@github.com;;
|
||||||
(hub) host=git@github.com;;
|
(hub|github) host=git@github.com;;
|
||||||
(lab) host=git@gitlab.com;;
|
(lab) host=git@gitlab.com;;
|
||||||
(jf) host=${1:-gitea@git.jfischer.org};;
|
(jf) host=gitea@git.jfischer.org;;
|
||||||
(*|ftt) host=git@code.ftt.gmbh; user=janek;;
|
(ftt|"") host=git@code.ftt.gmbh; user=janek;;
|
||||||
esac
|
esac
|
||||||
user=${3:-${user:-$(git config user.name)}}
|
user=${3:-${user:-$(git config user.name)}}
|
||||||
repo=${2:-$(basename $(git root))}
|
repo=${2:-$(basename $(git root))}
|
||||||
|
|
Loading…
Reference in New Issue