From f61c2e266d5ab3cd2584f43c0834c00641c1997f Mon Sep 17 00:00:00 2001 From: kevin zhuang Date: Tue, 21 Apr 2020 16:07:12 +1000 Subject: [PATCH] fix modified file preview --- helper/git_query.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/git_query.sh b/helper/git_query.sh index 3905feb..eced96b 100644 --- a/helper/git_query.sh +++ b/helper/git_query.sh @@ -119,6 +119,6 @@ function get_modified_file() { | fzf --header="${header}" --preview "echo {} \ | awk '{print \$2}' \ | xargs -I __ /usr/bin/git --git-dir=${DOTBARE_DIR} --work-tree=${DOTBARE_TREE} \ - diff --color=always ${DOTBARE_TREE}/__" \ + diff HEAD --color=always ${DOTBARE_TREE}/__" \ | awk -v home="${DOTBARE_TREE}" '{print home "/" $2}' }