Use --reverse option in fco example (#29)

This commit is contained in:
Junegunn Choi 2014-03-20 10:38:53 +09:00
parent 9ea651f1cd
commit 678e950b6d

View File

@ -172,7 +172,7 @@ fbr() {
# fco - checkout git commit
fco() {
local commits commit
commits=$(git log --pretty=oneline --abbrev-commit) &&
commits=$(git log --pretty=oneline --abbrev-commit --reverse) &&
commit=$(echo "$commits" | fzf +s +m -e) &&
git checkout $(echo "$commit" | sed "s/ .*//")
}