Add file-history command
This commit is contained in:
parent
c4b8140948
commit
143d13972c
7
guzzy/commands/file-history.sh
Executable file
7
guzzy/commands/file-history.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
file_name="$1"
|
||||
|
||||
git log --color=always --format="%C(auto)%h %s" "$file_name" |
|
||||
fzf --ansi --preview \
|
||||
"git diff --color=always {1}~ {1} -- $file_name 2>/dev/null || echo ..."
|
Loading…
x
Reference in New Issue
Block a user