Skip to content

Commit

Permalink
fix: glo can not match files (#249)
Browse files Browse the repository at this point in the history
Fixed "glo -- <files>" behavior to show specified files only instead of
showing all changed files.
  • Loading branch information
ZenLian committed Jan 30, 2023
1 parent c098bf2 commit 8502ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-forgit
Expand Up @@ -74,7 +74,7 @@ _forgit_is_file_tracked="(git ls-files {} --error-unmatch) &> /dev/null"
_forgit_log() {
_forgit_inside_work_tree || return 1
local opts graph files log_format preview_cmd enter_cmd
files=$(sed -nE 's/.* -- (.*)/\1/p' <<< "$*") # extract files parameters for `git show` command
files=$(sed -nE 's/.*-- (.*)/\1/p' <<< "$*") # extract files parameters for `git show` command
preview_cmd="echo {} | $_forgit_extract_sha | xargs -I% git show --color=always -U$_forgit_preview_context % -- $files | $_forgit_show_pager"
enter_cmd="echo {} | $_forgit_extract_sha | xargs -I% ${FORGIT} diff %^! $files"
opts="
Expand Down

0 comments on commit 8502ae2

Please sign in to comment.