Commit fbd6a0b4aa3c6ee69cc038e99fdbfaee338fd342
git/config: cc: numerical sort when finding latest patch set
Claes Wallin (韋嘉誠) committed on 11/2/2016, 4:40:32 PMParent: 1cf860d974728c39c94da1fb66c1706103237ea5
Files changed
.config/git/config | changed |
.config/git/config | ||
---|---|---|
@@ -6,9 +6,10 @@ | ||
6 | 6 … | st = status --short |
7 | 7 … | amend = commit --amend --no-edit --reset-author |
8 | 8 … | gco = !bash -c 'git fetch gerrit \"$1\" && git checkout FETCH_HEAD' git-gco |
9 | 9 … | 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 … | + | |
11 | 12 … | [core] |
12 | 13 … | autocrlf = false |
13 | 14 … | safecrlf = true |
14 | 15 … | [uploadpack] |
Built with git-ssb-web