scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Numbers referring to unset $e variables should not be removed #270

Open HaleTom opened 5 years ago

HaleTom commented 5 years ago

git allows referring to a commit by the first 4 hex digits.

When these 4 digits are numbers, exec_scmb_expand_args will remove them.

% ge echo foo
foo
% ge echo 9999

%

Also, null strings should not be removed:


% shell-quote ''
''
% shell-quote '' a\ b
'' 'a b'
% ge shell-quote '' a\ b
'a b'
ghthor commented 5 years ago

Yeah, I agree. exec_scmb_expand_args should only consume and resolve digits with matches $e values.

HaleTom commented 5 years ago

Related to #84