Merge pull request #128 from dlee/fix_branch_shortcuts_offset
Fix shortcuts offset when branch_shortcuts encounters detached HEAD
This commit is contained in:
@@ -33,6 +33,7 @@ EOF
|
||||
|
||||
# Set numbered file shortcut in variable
|
||||
local e=1
|
||||
IFS=$'\n'
|
||||
for branch in $($_git_cmd branch "$@" | sed "s/^[* ]\{2\}//"); do
|
||||
export $git_env_char$e="$branch"
|
||||
if [ "${scmbDebug:-}" = "true" ]; then echo "Set \$$git_env_char$e => $file"; fi
|
||||
|
||||
Reference in New Issue
Block a user