MCPcopy Create free account
hub / github.com/git/git / apply_save_autostash

Function apply_save_autostash

sequencer.c:4786–4804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4784}
4785
4786static int apply_save_autostash(const char *path, int attempt_apply)
4787{
4788 struct strbuf stash_oid = STRBUF_INIT;
4789 int ret = 0;
4790
4791 if (!read_oneliner(&stash_oid, path,
4792 READ_ONELINER_SKIP_IF_EMPTY)) {
4793 strbuf_release(&stash_oid);
4794 return 0;
4795 }
4796 strbuf_trim(&stash_oid);
4797
4798 ret = apply_save_autostash_oid(stash_oid.buf, attempt_apply,
4799 NULL, NULL, NULL, NULL);
4800
4801 unlink(path);
4802 strbuf_release(&stash_oid);
4803 return ret;
4804}
4805
4806int save_autostash(const char *path)
4807{

Callers 2

save_autostashFunction · 0.85
apply_autostashFunction · 0.85

Calls 4

read_onelinerFunction · 0.85
strbuf_releaseFunction · 0.85
strbuf_trimFunction · 0.85
apply_save_autostash_oidFunction · 0.85

Tested by

no test coverage detected