Differences From:
File
src/allrepo.c
part of check-in
[4f0f992245]
- Add missing 'rebuild' subcommand suggestion for command 'fossil all' subcommands.
by
bharder on
2009-01-29 02:57:37.
[view]
To:
File
src/allrepo.c
part of check-in
[e85b538fa8]
- make "ls" an alias for "list" in "fossil all [bad-link: x]x" command. i.e.: fossil all ls == fossil all list.
by
bch on
2009-08-09 21:39:42.
[view]
@@ -56,16 +56,16 @@
/*
** COMMAND: all
**
-** Usage: %fossil all (list|pull|push|rebuild|sync)
+** Usage: %fossil all (list|ls|pull|push|rebuild|sync)
**
** The ~/.fossil file records the location of all repositories for a
** user. This command performs certain operations on all repositories
** that can be useful before or after a period of disconnection operation.
** Available operations are:
**
-** list Display the location of all repositories
+** list|ls Display the location of all repositories
**
** pull Run a "pull" operation on all repositories
**
** push Run a "push" on all repositories
@@ -87,14 +87,16 @@
char *zQFilename;
int nMissing;
if( g.argc<3 ){
- usage("list|pull|push|rebuild|sync");
+ usage("list|ls|pull|push|rebuild|sync");
}
n = strlen(g.argv[2]);
db_open_config();
zCmd = g.argv[2];
if( strncmp(zCmd, "list", n)==0 ){
+ zCmd = "list";
+ }else if( strncmp(zCmd, "ls", n)==0 ){ /* alias for "list" above */
zCmd = "list";
}else if( strncmp(zCmd, "push", n)==0 ){
zCmd = "push -autourl -R";
}else if( strncmp(zCmd, "pull", n)==0 ){