You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mikel Ward <mi...@endbracket.net> on 2006/10/04 14:46:43 UTC
[PATCH] svn "ad" as alias for "add"
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
Re: [PATCH] svn "ad" as alias for "add"
Posted by "C. Michael Pilato" <cm...@collab.net>.
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 <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand