summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-03-20 10:38:53 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-03-20 10:38:53 +0900
commit678e950b6dcb786473bf5c5e0d097cfc1e6bfbfa (patch)
tree4873c0856b52b8541056fd7eda152d6e7b8e9771
parent9ea651f1cd3c8d9e97f21f7e04838ab53737c91c (diff)
downloadfzf-678e950b6dcb786473bf5c5e0d097cfc1e6bfbfa.tar.gz
Use --reverse option in fco example (#29)
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 25020b9c..b8fc8909 100644
--- a/README.md
+++ b/README.md
@@ -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/ .*//")
}