xonsh/news
Gil Forsyth eaa12f9bff ignore vc aliases in command_cache
I don't *think* this will have any side effects.

When we build the ``$PROMPT``, we lazily check for ``git`` and ``hg``
binaries to see if we should generate a ``<branch>`` field.

At the same time ``lazy_locate_binary`` doesn't return the path to a
command if it detects that that command is an alias (since aliases won't
have a path).

In the case that ``git`` or ``hg`` is aliased (the specific case here
was replacing ``git`` with ``hub``), ``lazy_locate_binary`` will return
``None`` because the command is an alias.

This breaks the logic in the branch detection. We don't want to change
the logic in the branch detection since there are many potential impacts
on prompt generation speed, which makes for a bad user experience.

So, this is a mildly ugly hack, but it's the best option I could come up
with in order to preserve prompt speed and still keep the branch
information available for this slightly weird edge case.

I'm all ears to alternative solutions.
2017-01-31 18:11:19 -05:00
..
background_preditor_from_bin.rst new item, background predictor generator 2017-01-05 18:57:22 +01:00
elision_char_at_the_end_of_last.rst Add elision char at the end of cwd when the last dir is shortened 2017-01-06 21:05:50 +01:00
endrtn.rst news 2017-01-28 14:01:01 -05:00
event-transform-command.rst Add news item 2017-01-07 15:15:02 -05:00
events-keywords.rst News item 2017-01-27 21:25:35 -05:00
failover-script.rst xonsh script.xsh should not fail over 2017-01-11 21:59:42 +08:00
glbf.rst more news 2017-01-10 11:42:04 -05:00
gvim.rst added gvim 2017-01-28 15:28:36 -05:00
hist-tss-fix.rst added a news item 2017-01-07 17:28:27 +08:00
intrpt.rst PopenThread SIGINT fix 2017-01-13 00:29:50 -05:00
jk.rst potential fix for jupyter 2017-01-26 16:55:13 -05:00
pybg.rst why did this just work! 2017-01-28 22:00:31 -05:00
querycomp.rst added news 2017-01-12 23:24:57 -05:00
source.rst source alias improvements 2017-01-08 20:16:00 -05:00
strip_pygments.rst add news item 2017-01-27 07:44:55 -05:00
tabcomplete_for_click_apps.rst fix remnants of template 2017-01-23 17:03:54 +00:00
telnet.rst added telnet to unthreadable predictors 2017-01-28 14:46:31 -05:00
TEMPLATE.rst some prep movements 2016-06-11 16:11:26 -04:00
to2.rst Allow stdout to redirect to stderr 2017-01-11 23:29:28 -05:00
vc_alias_fix.rst ignore vc aliases in command_cache 2017-01-31 18:11:19 -05:00
z.rst added z news 2017-01-11 21:08:51 -05:00