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

Function assert_stash_like

builtin/stash.c:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static void assert_stash_like(struct stash_info *info, const char *revision)
217{
218 if (get_oidf(&info->b_commit, "%s^1", revision) ||
219 get_oidf(&info->w_tree, "%s:", revision) ||
220 get_oidf(&info->b_tree, "%s^1:", revision) ||
221 get_oidf(&info->i_tree, "%s^2:", revision))
222 die(_("'%s' is not a stash-like commit"), revision);
223}
224
225static int parse_stash_revision(struct strbuf *revision, const char *commit, int quiet)
226{

Callers 2

get_stash_infoFunction · 0.85
do_store_stashFunction · 0.85

Calls 2

get_oidfFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected