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

Function not_found

http-backend.c:137–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137__attribute__((format (printf, 2, 3)))
138static NORETURN void not_found(struct strbuf *hdr, const char *err, ...)
139{
140 va_list params;
141
142 http_status(hdr, 404, "Not Found");
143 hdr_nocache(hdr);
144 end_headers(hdr);
145
146 va_start(params, err);
147 if (err && *err) {
148 vfprintf(stderr, err, params);
149 putc('\n', stderr);
150 }
151 va_end(params);
152 exit(0);
153}
154
155__attribute__((format (printf, 2, 3)))
156static NORETURN void forbidden(struct strbuf *hdr, const char *err, ...)

Callers 2

send_local_fileFunction · 0.85
cmd_mainFunction · 0.85

Calls 3

http_statusFunction · 0.85
hdr_nocacheFunction · 0.85
end_headersFunction · 0.85

Tested by

no test coverage detected