Fix: early out with non-file arguments in checkout file (#456)

This commit is contained in:
sandr01d 2025-07-16 20:37:06 +02:00 committed by GitHub
parent 7c3aff1142
commit 8285d2e1b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -841,7 +841,7 @@ _forgit_git_checkout_file() {
_forgit_checkout_file() {
_forgit_inside_work_tree || return 1
local files opts
_forgit_contains_non_flags "$@" && { _forgit_git_checkout_file -- "$@"; return $?; }
_forgit_contains_non_flags "$@" && { _forgit_git_checkout_file "$@"; return $?; }
opts="
$FORGIT_FZF_DEFAULT_OPTS
-m -0