mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-09 17:53:56 +00:00
Use --reverse option in fco example (#29)
This commit is contained in:
parent
9ea651f1cd
commit
678e950b6d
@ -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/ .*//")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user