[PATCH v2 0/4] allow recovery from command name typos
- From
Tay Ray Chuan <rctay89@gmail.com>
- Date
- Jul 25, 2012, 16:16 UTC
- Message-ID
- <1343232982-10540-1-git-send-email-rctay89@gmail.com>
- In-Reply-To
- <1336287330-7215-1-git-send-email-rctay89@gmail.com>
Patch 4 has the meat of this series.
While running valgrind to check that I didn't leak any memory, a couple of leaks were spotted. Patches 1-3 address them.
Major change in v2: implement Thomas' idea [1] about using help.autocorrect to configure this behaviour.
[1] <878vh4con4.fsf@thomas.inf.ethz.ch>
Jeff King (1): help.c::uniq: plug a leak
Tay Ray Chuan (3): help.c::exclude_cmds: realloc() before copy, plug a leak help.c: plug leaks with(out) help.autocorrect allow recovery from command name typos
Documentation/config.txt | 30 ++++++++++++---- advice.c | 2 ++ advice.h | 1 + help.c | 94 ++++++++++++++++++++++++++++++++++++++++++------ 4 files changed, 110 insertions(+), 17 deletions(-)
-- 1.7.11.1.116.g8228a23