MCPcopy Index your code
hub / github.com/git/git / peek_command

Function peek_command

sequencer.c:4647–4656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4645}
4646
4647static enum todo_command peek_command(struct todo_list *todo_list, int offset)
4648{
4649 int i;
4650
4651 for (i = todo_list->current + offset; i < todo_list->nr; i++)
4652 if (!is_noop(todo_list->items[i].command))
4653 return todo_list->items[i].command;
4654
4655 return -1;
4656}
4657
4658static void create_autostash_internal(struct repository *r,
4659 const char *path,

Callers 5

pick_one_commitFunction · 0.85
pick_commitsFunction · 0.85
commit_staged_changesFunction · 0.85
sequencer_continueFunction · 0.85
skip_unnecessary_picksFunction · 0.85

Calls 1

is_noopFunction · 0.85

Tested by

no test coverage detected