mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-15 01:36:15 -04:00
Fix branch preview for branches that have the same name as a file
This commit is contained in:
parent
0a8a70bc20
commit
1f52899583
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue