@@ -1089,7 +1089,6 @@ static int store_stash(int argc, const char **argv, const char *prefix,
10891089 int quiet = 0 ;
10901090 const char * stash_msg = NULL ;
10911091 struct object_id obj ;
1092- struct object_context dummy = {0 };
10931092 struct option options [] = {
10941093 OPT__QUIET (& quiet , N_ ("be quiet" )),
10951094 OPT_STRING ('m' , "message" , & stash_msg , "message" ,
@@ -1109,9 +1108,8 @@ static int store_stash(int argc, const char **argv, const char *prefix,
11091108 return -1 ;
11101109 }
11111110
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 )) {
11151113 if (!quiet )
11161114 fprintf_ln (stderr , _ ("Cannot update %s with %s" ),
11171115 ref_stash , argv [0 ]);
@@ -1122,7 +1120,6 @@ static int store_stash(int argc, const char **argv, const char *prefix,
11221120 ret = do_store_stash (& obj , stash_msg , quiet );
11231121
11241122out :
1125- object_context_release (& dummy );
11261123 return ret ;
11271124}
11281125
@@ -2238,7 +2235,6 @@ static int do_export_stash(struct repository *r,
22382235 const char * * argv )
22392236{
22402237 struct object_id base ;
2241- struct object_context unused ;
22422238 struct commit * prev ;
22432239 struct commit_list * items = NULL , * * iter = & items , * cur ;
22442240 int res = 0 ;
@@ -2272,9 +2268,9 @@ static int do_export_stash(struct repository *r,
22722268 struct commit * stash ;
22732269
22742270 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 )) {
22782274 res = error (_ ("unable to find stash entry %s" ), argv [i ]);
22792275 goto out ;
22802276 }
0 commit comments