Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 KB | None | 0 0
  1. static struct cmd_struct commands[] = {
  2. { "add", cmd_add, RUN_SETUP | NEED_WORK_TREE },
  3. { "am", cmd_am, RUN_SETUP | NEED_WORK_TREE },
  4. { "annotate", cmd_annotate, RUN_SETUP | NO_PARSEOPT },
  5. { "apply", cmd_apply, RUN_SETUP_GENTLY },
  6. { "archive", cmd_archive, RUN_SETUP_GENTLY },
  7. { "bisect--helper", cmd_bisect__helper, RUN_SETUP },
  8. { "blame", cmd_blame, RUN_SETUP },
  9. { "branch", cmd_branch, RUN_SETUP | DELAY_PAGER_CONFIG },
  10. { "bundle", cmd_bundle, RUN_SETUP_GENTLY | NO_PARSEOPT },
  11. { "cat-file", cmd_cat_file, RUN_SETUP },
  12. { "check-attr", cmd_check_attr, RUN_SETUP },
  13. { "check-ignore", cmd_check_ignore, RUN_SETUP | NEED_WORK_TREE },
  14. { "check-mailmap", cmd_check_mailmap, RUN_SETUP },
  15. { "check-ref-format", cmd_check_ref_format, NO_PARSEOPT },
  16. { "checkout", cmd_checkout, RUN_SETUP | NEED_WORK_TREE },
  17. { "checkout-index", cmd_checkout_index,
  18. RUN_SETUP | NEED_WORK_TREE},
  19. { "cherry", cmd_cherry, RUN_SETUP },
  20. { "cherry-pick", cmd_cherry_pick, RUN_SETUP | NEED_WORK_TREE },
  21. { "clean", cmd_clean, RUN_SETUP | NEED_WORK_TREE },
  22. { "clone", cmd_clone },
  23. { "column", cmd_column, RUN_SETUP_GENTLY },
  24. { "commit", cmd_commit, RUN_SETUP | NEED_WORK_TREE },
  25. { "commit-graph", cmd_commit_graph, RUN_SETUP },
  26. { "commit-tree", cmd_commit_tree, RUN_SETUP | NO_PARSEOPT },
  27. { "config", cmd_config, RUN_SETUP_GENTLY | DELAY_PAGER_CONFIG },
  28. { "count-objects", cmd_count_objects, RUN_SETUP },
  29. { "credential", cmd_credential, RUN_SETUP_GENTLY | NO_PARSEOPT },
  30. { "describe", cmd_describe, RUN_SETUP },
  31. { "diff", cmd_diff, NO_PARSEOPT },
  32. { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
  33. { "diff-index", cmd_diff_index, RUN_SETUP | NO_PARSEOPT },
  34. { "diff-tree", cmd_diff_tree, RUN_SETUP | NO_PARSEOPT },
  35. { "difftool", cmd_difftool, RUN_SETUP_GENTLY },
  36. { "env--helper", cmd_env__helper },
  37. { "fast-export", cmd_fast_export, RUN_SETUP },
  38. { "fetch", cmd_fetch, RUN_SETUP },
  39. { "fetch-pack", cmd_fetch_pack, RUN_SETUP | NO_PARSEOPT },
  40. { "fmt-merge-msg", cmd_fmt_merge_msg, RUN_SETUP },
  41. { "for-each-ref", cmd_for_each_ref, RUN_SETUP },
  42. { "format-patch", cmd_format_patch, RUN_SETUP },
  43. { "fsck", cmd_fsck, RUN_SETUP },
  44. { "fsck-objects", cmd_fsck, RUN_SETUP },
  45. { "gc", cmd_gc, RUN_SETUP },
  46. { "get-tar-commit-id", cmd_get_tar_commit_id, NO_PARSEOPT },
  47. { "grep", cmd_grep, RUN_SETUP_GENTLY },
  48. { "hash-object", cmd_hash_object },
  49. { "help", cmd_help },
  50. { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY | NO_PARSEOPT },
  51. { "init", cmd_init_db },
  52. { "init-db", cmd_init_db },
  53. { "interpret-trailers", cmd_interpret_trailers, RUN_SETUP_GENTLY },
  54. { "log", cmd_log, RUN_SETUP },
  55. { "ls-files", cmd_ls_files, RUN_SETUP },
  56. { "ls-remote", cmd_ls_remote, RUN_SETUP_GENTLY },
  57. { "ls-tree", cmd_ls_tree, RUN_SETUP },
  58. { "mailinfo", cmd_mailinfo, RUN_SETUP_GENTLY | NO_PARSEOPT },
  59. { "mailsplit", cmd_mailsplit, NO_PARSEOPT },
  60. { "merge", cmd_merge, RUN_SETUP | NEED_WORK_TREE },
  61. { "merge-base", cmd_merge_base, RUN_SETUP },
  62. { "merge-file", cmd_merge_file, RUN_SETUP_GENTLY },
  63. { "merge-index", cmd_merge_index, RUN_SETUP | NO_PARSEOPT },
  64. { "merge-ours", cmd_merge_ours, RUN_SETUP | NO_PARSEOPT },
  65. { "merge-recursive", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
  66. { "merge-recursive-ours", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
  67. { "merge-recursive-theirs", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
  68. { "merge-subtree", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
  69. { "merge-tree", cmd_merge_tree, RUN_SETUP | NO_PARSEOPT },
  70. { "mktag", cmd_mktag, RUN_SETUP | NO_PARSEOPT },
  71. { "mktree", cmd_mktree, RUN_SETUP },
  72. { "multi-pack-index", cmd_multi_pack_index, RUN_SETUP_GENTLY },
  73. { "mv", cmd_mv, RUN_SETUP | NEED_WORK_TREE },
  74. { "name-rev", cmd_name_rev, RUN_SETUP },
  75. { "notes", cmd_notes, RUN_SETUP },
  76. { "pack-objects", cmd_pack_objects, RUN_SETUP },
  77. { "pack-redundant", cmd_pack_redundant, RUN_SETUP | NO_PARSEOPT },
  78. { "pack-refs", cmd_pack_refs, RUN_SETUP },
  79. { "patch-id", cmd_patch_id, RUN_SETUP_GENTLY | NO_PARSEOPT },
  80. { "pickaxe", cmd_blame, RUN_SETUP },
  81. { "prune", cmd_prune, RUN_SETUP },
  82. { "prune-packed", cmd_prune_packed, RUN_SETUP },
  83. { "psuh", cmd_psuh, RUN_SETUP },
  84. { "pull", cmd_pull, RUN_SETUP | NEED_WORK_TREE },
  85. { "push", cmd_push, RUN_SETUP },
  86. { "range-diff", cmd_range_diff, RUN_SETUP | USE_PAGER },
  87. { "read-tree", cmd_read_tree, RUN_SETUP | SUPPORT_SUPER_PREFIX},
  88. { "rebase", cmd_rebase, RUN_SETUP | NEED_WORK_TREE },
  89. { "rebase--interactive", cmd_rebase__interactive, RUN_SETUP | NEED_WORK_TREE },
  90. { "receive-pack", cmd_receive_pack },
  91. { "reflog", cmd_reflog, RUN_SETUP },
  92. { "remote", cmd_remote, RUN_SETUP },
  93. { "remote-ext", cmd_remote_ext, NO_PARSEOPT },
  94. { "remote-fd", cmd_remote_fd, NO_PARSEOPT },
  95. { "repack", cmd_repack, RUN_SETUP },
  96. { "replace", cmd_replace, RUN_SETUP },
  97. { "rerere", cmd_rerere, RUN_SETUP },
  98. { "reset", cmd_reset, RUN_SETUP },
  99. { "restore", cmd_restore, RUN_SETUP | NEED_WORK_TREE },
  100. { "rev-list", cmd_rev_list, RUN_SETUP | NO_PARSEOPT },
  101. { "rev-parse", cmd_rev_parse, NO_PARSEOPT },
  102. { "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
  103. { "rm", cmd_rm, RUN_SETUP },
  104. { "send-pack", cmd_send_pack, RUN_SETUP },
  105. { "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
  106. { "show", cmd_show, RUN_SETUP },
  107. { "show-branch", cmd_show_branch, RUN_SETUP },
  108. { "show-index", cmd_show_index },
  109. { "show-ref", cmd_show_ref, RUN_SETUP },
  110. { "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
  111. /*
  112. * NEEDSWORK: Until the builtin stash is thoroughly robust and no
  113. * longer needs redirection to the stash shell script this is kept as
  114. * is, then should be changed to RUN_SETUP | NEED_WORK_TREE
  115. */
  116. { "stash", cmd_stash },
  117. { "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
  118. { "stripspace", cmd_stripspace },
  119. { "submodule--helper", cmd_submodule__helper, RUN_SETUP | SUPPORT_SUPER_PREFIX | NO_PARSEOPT },
  120. { "switch", cmd_switch, RUN_SETUP | NEED_WORK_TREE },
  121. { "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
  122. { "tag", cmd_tag, RUN_SETUP | DELAY_PAGER_CONFIG },
  123. { "unpack-file", cmd_unpack_file, RUN_SETUP | NO_PARSEOPT },
  124. { "unpack-objects", cmd_unpack_objects, RUN_SETUP | NO_PARSEOPT },
  125. { "update-index", cmd_update_index, RUN_SETUP },
  126. { "update-ref", cmd_update_ref, RUN_SETUP },
  127. { "update-server-info", cmd_update_server_info, RUN_SETUP },
  128. { "upload-archive", cmd_upload_archive, NO_PARSEOPT },
  129. { "upload-archive--writer", cmd_upload_archive_writer, NO_PARSEOPT },
  130. { "upload-pack", cmd_upload_pack },
  131. { "var", cmd_var, RUN_SETUP_GENTLY | NO_PARSEOPT },
  132. { "verify-commit", cmd_verify_commit, RUN_SETUP },
  133. { "verify-pack", cmd_verify_pack },
  134. { "verify-tag", cmd_verify_tag, RUN_SETUP },
  135. { "version", cmd_version },
  136. { "whatchanged", cmd_whatchanged, RUN_SETUP },
  137. { "worktree", cmd_worktree, RUN_SETUP | NO_PARSEOPT },
  138. { "write-tree", cmd_write_tree, RUN_SETUP },
  139. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement