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

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

From: Mikel Ward <michael_at_endbracket.net>
Date: 2006-10-04 16:46:43 CEST

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
Received on Wed Oct 4 16:47:01 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.