Merge pull request #3 from NICHOLAS85/ambig-fix

Prevent ambiguous argument error
pull/5/head
Kevin Zhuang 4 years ago committed by GitHub
commit 69c1930541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,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 HEAD --color=always ${DOTBARE_TREE}/__" \
diff HEAD --color=always -- ${DOTBARE_TREE}/__" \
| awk -v home="${DOTBARE_TREE}" -v format="${output_format}" '{
if (format == "name") {
print home "/" $2

Loading…
Cancel
Save