| 214 | } |
| 215 | |
| 216 | static 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 | |
| 225 | static int parse_stash_revision(struct strbuf *revision, const char *commit, int quiet) |
| 226 | { |
no test coverage detected