mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Use --reverse option in fco example (#29)
This commit is contained in:
@@ -172,7 +172,7 @@ fbr() {
|
|||||||
# fco - checkout git commit
|
# fco - checkout git commit
|
||||||
fco() {
|
fco() {
|
||||||
local commits commit
|
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) &&
|
commit=$(echo "$commits" | fzf +s +m -e) &&
|
||||||
git checkout $(echo "$commit" | sed "s/ .*//")
|
git checkout $(echo "$commit" | sed "s/ .*//")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user