List of actions, their command line names, and corresponding flags. More...
#include "global.h"#include "actions.h"#include "status.h"#include "commit.h"#include "update.h"#include "export.h"#include "log.h"#include "cat.h"#include "ignore.h"#include "cp_mv.h"#include "sync.h"#include "checkout.h"#include "diff.h"#include "url.h"#include "add_unvers.h"#include "props.h"#include "info.h"#include "revert.h"#include "remote.h"#include "resolve.h"#include "build.h"#include "doc.g-c"
Go to the source code of this file.
Defines | |
| #define | ACT(nam, _work, _act,...) |
| This #define is used to save us from writing the member names, in order to get a nice tabular layout. | |
| #define | UNINIT .local_uninit=st__progress_uninit |
| Use the progress uninitializer. | |
| #define | DECODER .needs_decoder=1 |
| Store update-pipe strings. | |
| #define | FILTER .only_opt_filter=1 |
| Commands obeys filtering via -f. | |
| #define | STS_WRITE .overwrite_sts_st=1 |
| Wants a current value in estat::st. | |
| #define | DIR_UPD .do_update_dir=1 |
| waa__update_dir() may look for new entries | |
| #define | RO .is_readonly=1 |
| Action doesn't write into WAA, may be used by unpriviledged user. | |
Variables | |
| static const char * | acl_status [] = { "status", NULL } |
| Array of command name pointers. | |
| static const char * | acl_commit [] = { "commit", "checkin", "ci", NULL } |
| static const char * | acl_update [] = { "update", NULL } |
| static const char * | acl_export [] = { "export", NULL } |
| static const char * | acl_build [] = { "_build-new-list", NULL } |
| static const char * | acl_delay [] = { "delay", NULL } |
| static const char * | acl_remote [] = { "remote-status", "rs", NULL } |
| static const char * | acl_ignore [] = { "ignore", NULL } |
| static const char * | acl_rign [] = { "rel-ignore", "ri", "r-i", NULL } |
| static const char * | acl_groups [] = { "groups", "groupings", "grps", NULL } |
| static const char * | acl_add [] = { "add", NULL } |
| static const char * | acl_copyfr [] = { "copyfrom-detect", "copy-detect", NULL } |
| static const char * | acl_cp [] = { "copy", "move", "cp", "mv", NULL } |
| static const char * | acl_uncp [] = { "uncopy", NULL } |
| static const char * | acl_unvers [] = { "unversion", NULL } |
| static const char * | acl_log [] = { "log", NULL } |
| static const char * | acl_cat [] = { "cat", NULL } |
| static const char * | acl_resolv [] = { "resolved", NULL } |
| static const char * | acl_checko [] = { "checkout", "co", NULL } |
| static const char * | acl_sync_r [] = { "sync-repos", NULL } |
| static const char * | acl_revert [] = { "revert", "undo", NULL } |
| static const char * | acl_prop_l [] = { "prop-list", "pl", NULL } |
| static const char * | acl_prop_g [] = { "prop-get", "pg", NULL } |
| static const char * | acl_prop_s [] = { "prop-set", "ps", NULL } |
| static const char * | acl_prop_d [] = { "prop-del", "pd", NULL } |
| static const char * | acl_diff [] = { "diff", NULL } |
| static const char * | acl_help [] = { "help", "?", NULL } |
| static const char * | acl_info [] = { "info", NULL } |
| static const char * | acl_urls [] = { "urls", "initialize", NULL } |
| struct actionlist_t | action_list [] |
| -. | |
| const int | action_list_count = sizeof(action_list)/sizeof(action_list[0]) |
| -. | |
| struct actionlist_t * | action = action_list |
| -. | |
List of actions, their command line names, and corresponding flags.
Definition in file ac_list.c.
| #define ACT | ( | nam, | |||
| _work, | |||||
| _act, | |||||
| ... | ) |
{ .name=acl_##nam, .help_text=hlp_##nam, \
.work=_work, .local_callback=_act, \
__VA_ARGS__ }
This #define is used to save us from writing the member names, in order to get a nice tabular layout.
Simply writing the initializations in structure order is not good; a simple re-arrange could make problems.
| #define DECODER .needs_decoder=1 |
| #define DIR_UPD .do_update_dir=1 |
waa__update_dir() may look for new entries
| #define FILTER .only_opt_filter=1 |
| #define RO .is_readonly=1 |
| #define STS_WRITE .overwrite_sts_st=1 |
| #define UNINIT .local_uninit=st__progress_uninit |
const char * acl_build[] = { "_build-new-list", NULL } [static] |
const char * acl_checko[] = { "checkout", "co", NULL } [static] |
const char * acl_commit[] = { "commit", "checkin", "ci", NULL } [static] |
const char * acl_copyfr[] = { "copyfrom-detect", "copy-detect", NULL } [static] |
const char * acl_cp[] = { "copy", "move", "cp", "mv", NULL } [static] |
const char * acl_export[] = { "export", NULL } [static] |
const char * acl_groups[] = { "groups", "groupings", "grps", NULL } [static] |
const char * acl_ignore[] = { "ignore", NULL } [static] |
const char * acl_prop_d[] = { "prop-del", "pd", NULL } [static] |
const char * acl_prop_g[] = { "prop-get", "pg", NULL } [static] |
const char * acl_prop_l[] = { "prop-list", "pl", NULL } [static] |
const char * acl_prop_s[] = { "prop-set", "ps", NULL } [static] |
const char * acl_remote[] = { "remote-status", "rs", NULL } [static] |
const char * acl_resolv[] = { "resolved", NULL } [static] |
const char * acl_revert[] = { "revert", "undo", NULL } [static] |
const char * acl_rign[] = { "rel-ignore", "ri", "r-i", NULL } [static] |
const char* acl_status[] = { "status", NULL } [static] |
const char * acl_sync_r[] = { "sync-repos", NULL } [static] |
const char * acl_unvers[] = { "unversion", NULL } [static] |
const char * acl_update[] = { "update", NULL } [static] |
const char * acl_urls[] = { "urls", "initialize", NULL } [static] |
| struct actionlist_t* action = action_list |
-.
Gets set to the current action after commandline parsing.
Definition at line 137 of file ac_list.c.
Referenced by ac__dispatch(), ac__Usage(), au__action(), cb___close(), cb___remover(), cb___store_prop(), df__work(), ign__work(), main(), ops__update_filter_set_bits(), ops__update_single_entry(), prp__s_work(), rev__work(), st__work(), up__add_directory(), up__apply_textdelta(), up__close_file(), up__fetch_decoder(), up__parse_prop(), up__work(), wa__set_warn_option(), wa__summary(), wa__warn(), waa___check_dir_for_update(), waa__find_common_base2(), waa__init(), waa__open(), waa__read_or_build_tree(), and waa__update_tree().
| struct actionlist_t action_list[] |
-.
Array of all known actions.
Definition at line 98 of file ac_list.c.
Referenced by ac__Usage(), act__find_action_by_name(), and main().
| const int action_list_count = sizeof(action_list)/sizeof(action_list[0]) |
-.
How many actions we know.
Definition at line 135 of file ac_list.c.
Referenced by ac__Usage(), and act__find_action_by_name().
1.6.1