Re: [PATCH] increase git el1T3nEss
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Oct 29, 2008, 20:28 UTC
- Message-ID
- <alpine.LNX.1.00.0810291623360.19665@iabervon.org>
- In-Reply-To
- <20081029170631.GA12078@sigill.intra.peff.net>
On Wed, 29 Oct 2008, Jeff King wrote:
Show 28 quoted lines
> The uptake of git by script kiddies has been disappointingly
> minimal. Let's make it more palatable by allowing mixed-case
> and l33t-speak commands.
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> This commit was made by "git c0mM1t".
>
> git.c | 27 ++++++++++++++++++++++++++-
> 1 files changed, 26 insertions(+), 1 deletions(-)
>
> diff --git a/git.c b/git.c
> index 89feb0b..fd0ca67 100644
> --- a/git.c
> +++ b/git.c
> @@ -261,6 +261,31 @@ static int run_command(struct cmd_struct *p, int argc, const char **argv)
> return 0;
> }
>
> +static char deelite(char in) {
> + if (isalpha(in))
> + return tolower(in);
> + switch (in) {
> + case '0': return 'o';
> + case '1': return 'i';
> + case '3': return 'e';
> + case '5': return 's';
> + case '7': return 'l';Your mapping doesn't comply with ISO 1337.5p34k; 1 can be l (in addition to i), and 7 is T. Also, you're missing 4.
-Daniel *This .sig left intentionally blank*