Fix branch preview for branches that have the same name as a file

This commit is contained in:
sandroid 2024-03-25 21:57:31 +01:00
parent 0a8a70bc20
commit 1f52899583
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -740,7 +740,9 @@ _forgit_checkout_commit() {
}
_forgit_branch_preview() {
git log "$1" "${_forgit_log_preview_options[@]}"
# the trailing '--' ensures that this works for branches that have a name
# that is identical to a file
git log "$1" "${_forgit_log_preview_options[@]}" --
}
_forgit_git_branch_delete() {