]> git.pld-linux.org Git - packages/fzf.git/blob - fzf-git-awk.patch
package fzf-git.sh as a part of fzf
[packages/fzf.git] / fzf-git-awk.patch
1 --- fzf-git.sh.orig     2022-09-06 04:47:02.000000000 +0200
2 +++ fzf-git.sh  2022-09-29 02:21:14.222705635 +0200
3 @@ -180,7 +180,7 @@
4      --bind 'ctrl-d:execute:grep -o "[a-f0-9]\{7,\}" <<< {} | head -n 1 | xargs git diff > /dev/tty' \
5      --color hl:underline,hl+:underline \
6      --preview 'grep -o "[a-f0-9]\{7,\}" <<< {} | head -n 1 | xargs git show --color=always' "$@" |
7 -  awk 'match($0, /[a-f0-9]{7,}/) { print substr($0, RSTART, RLENGTH) }'
8 +  awk 'match($0, /[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*/) { print substr($0, RSTART, RLENGTH) }'
9  }
10  
11  _fzf_git_remotes() {
This page took 0.041768 seconds and 3 git commands to generate.