@@ -313,7 +313,6 @@ static void handle_internal_command(int argc, const char **argv)
313
313
const char * cmd = argv [0 ];
314
314
static struct cmd_struct commands [] = {
315
315
{ "add" , cmd_add , RUN_SETUP | NEED_WORK_TREE },
316
- { "stage" , cmd_add , RUN_SETUP | NEED_WORK_TREE },
317
316
{ "annotate" , cmd_annotate , RUN_SETUP },
318
317
{ "apply" , cmd_apply , RUN_SETUP_GENTLY },
319
318
{ "archive" , cmd_archive },
@@ -322,15 +321,15 @@ static void handle_internal_command(int argc, const char **argv)
322
321
{ "branch" , cmd_branch , RUN_SETUP },
323
322
{ "bundle" , cmd_bundle , RUN_SETUP_GENTLY },
324
323
{ "cat-file" , cmd_cat_file , RUN_SETUP },
324
+ { "check-attr" , cmd_check_attr , RUN_SETUP },
325
+ { "check-ref-format" , cmd_check_ref_format },
325
326
{ "checkout" , cmd_checkout , RUN_SETUP | NEED_WORK_TREE },
326
327
{ "checkout-index" , cmd_checkout_index ,
327
328
RUN_SETUP | NEED_WORK_TREE },
328
- { "check-ref-format" , cmd_check_ref_format },
329
- { "check-attr" , cmd_check_attr , RUN_SETUP },
330
329
{ "cherry" , cmd_cherry , RUN_SETUP },
331
330
{ "cherry-pick" , cmd_cherry_pick , RUN_SETUP | NEED_WORK_TREE },
332
- { "clone" , cmd_clone },
333
331
{ "clean" , cmd_clean , RUN_SETUP | NEED_WORK_TREE },
332
+ { "clone" , cmd_clone },
334
333
{ "commit" , cmd_commit , RUN_SETUP | NEED_WORK_TREE },
335
334
{ "commit-tree" , cmd_commit_tree , RUN_SETUP },
336
335
{ "config" , cmd_config , RUN_SETUP_GENTLY },
@@ -358,8 +357,8 @@ static void handle_internal_command(int argc, const char **argv)
358
357
{ "init-db" , cmd_init_db },
359
358
{ "log" , cmd_log , RUN_SETUP },
360
359
{ "ls-files" , cmd_ls_files , RUN_SETUP },
361
- { "ls-tree" , cmd_ls_tree , RUN_SETUP },
362
360
{ "ls-remote" , cmd_ls_remote , RUN_SETUP_GENTLY },
361
+ { "ls-tree" , cmd_ls_tree , RUN_SETUP },
363
362
{ "mailinfo" , cmd_mailinfo },
364
363
{ "mailsplit" , cmd_mailsplit },
365
364
{ "merge" , cmd_merge , RUN_SETUP | NEED_WORK_TREE },
@@ -379,6 +378,7 @@ static void handle_internal_command(int argc, const char **argv)
379
378
{ "notes" , cmd_notes , RUN_SETUP },
380
379
{ "pack-objects" , cmd_pack_objects , RUN_SETUP },
381
380
{ "pack-redundant" , cmd_pack_redundant , RUN_SETUP },
381
+ { "pack-refs" , cmd_pack_refs , RUN_SETUP },
382
382
{ "patch-id" , cmd_patch_id },
383
383
{ "peek-remote" , cmd_ls_remote , RUN_SETUP_GENTLY },
384
384
{ "pickaxe" , cmd_blame , RUN_SETUP },
@@ -401,8 +401,10 @@ static void handle_internal_command(int argc, const char **argv)
401
401
{ "rm" , cmd_rm , RUN_SETUP },
402
402
{ "send-pack" , cmd_send_pack , RUN_SETUP },
403
403
{ "shortlog" , cmd_shortlog , RUN_SETUP_GENTLY | USE_PAGER },
404
- { "show-branch" , cmd_show_branch , RUN_SETUP },
405
404
{ "show" , cmd_show , RUN_SETUP },
405
+ { "show-branch" , cmd_show_branch , RUN_SETUP },
406
+ { "show-ref" , cmd_show_ref , RUN_SETUP },
407
+ { "stage" , cmd_add , RUN_SETUP | NEED_WORK_TREE },
406
408
{ "status" , cmd_status , RUN_SETUP | NEED_WORK_TREE },
407
409
{ "stripspace" , cmd_stripspace },
408
410
{ "symbolic-ref" , cmd_symbolic_ref , RUN_SETUP },
@@ -415,13 +417,11 @@ static void handle_internal_command(int argc, const char **argv)
415
417
{ "update-server-info" , cmd_update_server_info , RUN_SETUP },
416
418
{ "upload-archive" , cmd_upload_archive },
417
419
{ "var" , cmd_var , RUN_SETUP_GENTLY },
420
+ { "verify-pack" , cmd_verify_pack },
418
421
{ "verify-tag" , cmd_verify_tag , RUN_SETUP },
419
422
{ "version" , cmd_version },
420
423
{ "whatchanged" , cmd_whatchanged , RUN_SETUP },
421
424
{ "write-tree" , cmd_write_tree , RUN_SETUP },
422
- { "verify-pack" , cmd_verify_pack },
423
- { "show-ref" , cmd_show_ref , RUN_SETUP },
424
- { "pack-refs" , cmd_pack_refs , RUN_SETUP },
425
425
};
426
426
int i ;
427
427
static const char ext [] = STRIP_EXTENSION ;
0 commit comments