git ssb

0+

clacke / gists



Tree: c7b2d0bce3b000f41b31dc1decd3e89822e355b7

Files: c7b2d0bce3b000f41b31dc1decd3e89822e355b7 / .config / git / config

1741 bytesRaw
1[merge]
2 tool = meld
3[alias]
4 lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
5 lr = log --walk-reflogs --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
6 st = status --short
7 amend = commit --amend --no-edit --reset-author
8 gco = !bash -c 'git fetch gerrit \"$1\" && git checkout FETCH_HEAD' git-gco
9 fc = "!bash -ec 'change=\"$1\"; prefix=\"${change:$((${#change} - 2)):2}\"; git fetch gerrit \"refs/changes/${prefix}/${change}/*:refs/remotes/gerrit/changes/${change}/*\"' git-fc"
10 cc = "!bash -ec 'change=\"$1\"; prefix=\"${change:$((${#change} - 2)):2}\"; git fc \"$change\"; latest=$(git ls-remote . \"refs/remotes/gerrit/changes/${change}/*\" | sort -n -t / -k 6 | cut -f 2 | tail -n 1); if [[ -z $latest ]]; then echo >&2 \"No such change: $change\"; exit 1; else git checkout \"$latest\"; fi' git-cc"
11
12 wta = worktree add --detach
13 wtas = "!bash -ec 'if (( $# != 1)); then echo >&2 git wtas: 1 parameter expected; exit 2; fi; tree=\"$(python -c \"from __future__ import print_function; import os, os.path, sys; print(os.path.normpath(os.path.join(os.getenv(\\\"PWD\\\"), sys.argv[1])))\" \"$1\")\"; git wta \"$tree\"; cd \"$(git rev-parse --git-dir)\"; for mod in $(git config --blob HEAD:.gitmodules -l --name-only|gawk -F . \"/\\.path$/ {print \\$2}\"); do [ -d modules/$mod ] && git -C modules/$mod wta \"${tree}/$(git config --blob HEAD:.gitmodules --get submodule.${mod}.path)\"; done' wtas"
14
15[core]
16 autocrlf = false
17 safecrlf = true
18[uploadpack]
19 allowTipSHA1InWant = true
20 allowReachableSHA1InWant = true
21[receive]
22 denycurrentbranch = refuse

Built with git-ssb-web