[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] [PATCH] Accept "mtn di" as "mtn diff"

From: Julio M. Merino Vidal
Subject: Re: [Monotone-devel] [PATCH] Accept "mtn di" as "mtn diff"
Date: Wed, 24 Oct 2007 10:52:27 +0200

On 24/10/2007, at 5:59, Richard Laager wrote:

I think it's probably muscle memory from CVS or something, but I keep
typing "mtn di" expecting a diff. Attached is a patch to allow that.

I do not think this change is appropriate. monotone already allows shortened names of commands, and in fact 'mtn di' would work if it didn't found multiple completions:

$ mtn di
mtn: misuse: 'di' is ambiguous; possible completions are:
mtn: misuse: informative diff
mtn: misuse: review disapprove

Maybe a better approach would be to allow the user to customize which completions he prefers for a given prefix based on a lua hook?

(Of course, one'd argue that checkout already has a shortened 'co' version, but that's not strictly a prefix of it...)


Julio M. Merino Vidal <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]