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

Function git_get_exec_path_wpgmptr

exec-cmd.c:178–187  ·  view source on GitHub ↗

* Resolves the executable path by using the global variable _wpgmptr. * * Returns 0 on success, -1 on failure. */

Source from the content-addressed store, hash-verified

176 * Returns 0 on success, -1 on failure.
177 */
178static int git_get_exec_path_wpgmptr(struct strbuf *buf)
179{
180 int len = wcslen(_wpgmptr) * 3 + 1;
181 strbuf_grow(buf, len);
182 len = xwcstoutf(buf->buf, _wpgmptr, len);
183 if (len < 0)
184 return -1;
185 buf->len += len;
186 return 0;
187}
188#endif /* HAVE_WPGMPTR */
189
190/*

Callers 1

exec-cmd.cFile · 0.85

Calls 2

strbuf_growFunction · 0.85
xwcstoutfFunction · 0.85

Tested by

no test coverage detected