@@ -1089,7 +1089,6 @@ static int store_stash(int argc, const char **argv, const char *prefix,
1089
1089
int quiet = 0 ;
1090
1090
const char * stash_msg = NULL ;
1091
1091
struct object_id obj ;
1092
- struct object_context dummy = {0 };
1093
1092
struct option options [] = {
1094
1093
OPT__QUIET (& quiet , N_ ("be quiet" )),
1095
1094
OPT_STRING ('m' , "message" , & stash_msg , "message" ,
@@ -1109,9 +1108,8 @@ static int store_stash(int argc, const char **argv, const char *prefix,
1109
1108
return -1 ;
1110
1109
}
1111
1110
1112
- if (get_oid_with_context (the_repository ,
1113
- argv [0 ], quiet ? GET_OID_QUIETLY : 0 , & obj ,
1114
- & dummy )) {
1111
+ if (repo_get_oid_with_flags (the_repository , argv [0 ], & obj ,
1112
+ quiet ? GET_OID_QUIETLY : 0 )) {
1115
1113
if (!quiet )
1116
1114
fprintf_ln (stderr , _ ("Cannot update %s with %s" ),
1117
1115
ref_stash , argv [0 ]);
@@ -1122,7 +1120,6 @@ static int store_stash(int argc, const char **argv, const char *prefix,
1122
1120
ret = do_store_stash (& obj , stash_msg , quiet );
1123
1121
1124
1122
out :
1125
- object_context_release (& dummy );
1126
1123
return ret ;
1127
1124
}
1128
1125
@@ -2238,7 +2235,6 @@ static int do_export_stash(struct repository *r,
2238
2235
const char * * argv )
2239
2236
{
2240
2237
struct object_id base ;
2241
- struct object_context unused ;
2242
2238
struct commit * prev ;
2243
2239
struct commit_list * items = NULL , * * iter = & items , * cur ;
2244
2240
int res = 0 ;
@@ -2272,9 +2268,9 @@ static int do_export_stash(struct repository *r,
2272
2268
struct commit * stash ;
2273
2269
2274
2270
if (parse_stash_revision (& revision , argv [i ], 1 ) ||
2275
- get_oid_with_context (r , revision .buf ,
2276
- GET_OID_QUIETLY | GET_OID_GENTLY ,
2277
- & oid , & unused )) {
2271
+ repo_get_oid_with_flags (r , revision .buf , & oid ,
2272
+ GET_OID_QUIETLY |
2273
+ GET_OID_GENTLY )) {
2278
2274
res = error (_ ("unable to find stash entry %s" ), argv [i ]);
2279
2275
goto out ;
2280
2276
}
0 commit comments