| 607 | } |
| 608 | |
| 609 | static int run_status(struct add_i_state *s, const struct pathspec *ps, |
| 610 | struct prefix_item_list *files, |
| 611 | struct list_and_choose_options *opts) |
| 612 | { |
| 613 | if (get_modified_files(s->r, NO_FILTER, files, ps, NULL, NULL) < 0) |
| 614 | return -1; |
| 615 | |
| 616 | list(s, &files->items, NULL, &opts->list_opts); |
| 617 | putchar('\n'); |
| 618 | |
| 619 | return 0; |
| 620 | } |
| 621 | |
| 622 | static int run_update(struct add_i_state *s, const struct pathspec *ps, |
| 623 | struct prefix_item_list *files, |
no test coverage detected