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

Function starts_with

strbuf.c:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "date.h"
10
11bool starts_with(const char *str, const char *prefix)
12{
13 for (; ; str++, prefix++)
14 if (!*prefix)
15 return true;
16 else if (*str != *prefix)
17 return false;
18}
19
20bool istarts_with(const char *str, const char *prefix)
21{

Callers 15

parse_tag_bufferFunction · 0.85
looks_like_pathspecFunction · 0.85
validate_headrefFunction · 0.85
read_gitfile_gentlyFunction · 0.85
consume_shallow_listFunction · 0.85
filter_refsFunction · 0.85
get_coloptsFunction · 0.85
help_unknown_cmdFunction · 0.85
append_similar_refFunction · 0.85
path_msgFunction · 0.85
remote_ref_atom_parserFunction · 0.85

Calls

no outgoing calls

Tested by 6

parse_long_magicFunction · 0.68
test_app_cbFunction · 0.68
cmd__submodule_configFunction · 0.68
cmd__dir_iteratorFunction · 0.68
command_loopFunction · 0.68
proc_receive_verisonFunction · 0.68