git ssb

0+

clacke / gists



Commit fbd6a0b4aa3c6ee69cc038e99fdbfaee338fd342

git/config: cc: numerical sort when finding latest patch set

Claes Wallin (韋嘉誠) committed on 11/2/2016, 4:40:32 PM
Parent: 1cf860d974728c39c94da1fb66c1706103237ea5

Files changed

.config/git/configchanged
.config/git/configView
@@ -6,9 +6,10 @@
66 st = status --short
77 amend = commit --amend --no-edit --reset-author
88 gco = !bash -c 'git fetch gerrit \"$1\" && git checkout FETCH_HEAD' git-gco
99 fc = "!bash -ec 'change=\"$1\"; prefix=\"${change:3:2}\"; git fetch gerrit \"refs/changes/${prefix}/${change}/*:refs/remotes/gerrit/changes/${prefix}/${change}/*\"' git-fc"
10- cc = "!bash -ec 'change=\"$1\"; prefix=\"${change:3:2}\"; git fc \"$change\"; latest=$(git ls-remote . \"refs/remotes/gerrit/changes/${prefix}/${change}/*\" | 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"
10 + cc = "!bash -ec 'change=\"$1\"; prefix=\"${change:3:2}\"; git fc \"$change\"; latest=$(git ls-remote . \"refs/remotes/gerrit/changes/${prefix}/${change}/*\" | sort -n -t / -k 7 | 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 +
1112 [core]
1213 autocrlf = false
1314 safecrlf = true
1415 [uploadpack]

Built with git-ssb-web