git:glog:TODO: Display ... in patch-stat

This commit is contained in:
2023-02-09 13:21:00 +01:00
parent 9449b7fecd
commit 8baaaf0e94

View File

@@ -57,6 +57,7 @@ read -r -d '' <<EOT
EOT
fzf_preview[patch]="$fzf_preview[construct] { $REPLY"
# Get file arguments after (and including) `--` and wrap each in double quotes
# TODO: Display `...` behind patch-stat if the patch touched more files
fzf_preview[files_only]="$fzf_preview[patch] ${(@)${@:${@[(ei)--]}}/(#m)*/\"$MATCH\"}"
if (( $+commands[diff-so-fancy] )); then