From 17d5888ac837364990603cbc76aad391a9494154 Mon Sep 17 00:00:00 2001 From: samedamci Date: Tue, 31 Aug 2021 11:36:56 +0200 Subject: [PATCH] Update diff command --- guzzy/commands/diff.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guzzy/commands/diff.sh b/guzzy/commands/diff.sh index b00341e..14d453c 100755 --- a/guzzy/commands/diff.sh +++ b/guzzy/commands/diff.sh @@ -1,4 +1,3 @@ #!/bin/sh -git status | awk '/modified/ { print $2 }' | fzf --preview \ - 'git diff --color=always {}' +git ls-files --modified | fzf --preview 'git diff --color=always {}'