From 64b7ae2fe4fa6768d7270e85253ff5c7104cdea0 Mon Sep 17 00:00:00 2001 From: kevin zhuang Date: Fri, 17 Apr 2020 18:00:18 +1000 Subject: [PATCH] fix preview diff --- 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 b1fee8e..78151ba 100644 --- a/helper/git_query.sh +++ b/helper/git_query.sh @@ -109,7 +109,7 @@ 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}' }