[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] svn "ad" as alias for "add"

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-10-04 17:27:39 CEST

Mikel, thanks for the patch, but we've made a conscious effort *not* to
add all those aliases. A one-character typing savings wasn't -- and
isn't -- deemed worthwhile, and unnecessarily clouds the alias space for
our relatively young and growing version control system.

Mikel Ward wrote:
> Hi
>
> cvs has an alias "ad" for the "add" subcommand. This fits nicely with
> the other two-letter aliases such as "ci", "co", "di", and "up", all of
> which work in svn. I've gotten used to typing "cvs ad <filename>" and
> miss this in svn. It's unlikely to be mistyped, an obvious
> abbreviation, and doesn't conflict with any existing svn subcommand or
> alias.
>
> As far as I can tell, the only necessary change is one line to
> subversion/svn/main.c (attached).
>
> Hope you'll consider it for inclusion.
>
> Thanks
>
> Mike
>
>
>
> ------------------------------------------------------------------------
>
> Index: subversion/svn/main.c
> ===================================================================
> --- subversion/svn/main.c (revision 21764)
> +++ subversion/svn/main.c (working copy)
> @@ -227,7 +227,7 @@
>
> const svn_opt_subcommand_desc2_t svn_cl__cmd_table[] =
> {
> - { "add", svn_cl__add, {0}, N_
> + { "add", svn_cl__add, {"ad"}, N_
> ("Put files and directories under version control, scheduling\n"
> "them for addition to repository. They will be added in next commit.\n"
> "usage: add PATH...\n"),
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Wed Oct 4 17:28:07 2006

This is an archived mail posted to the Subversion Dev mailing list.