@@ -14,10 +14,10 @@ int pack_refs_core(int argc,
1414{
1515 struct ref_exclusions excludes = REF_EXCLUSIONS_INIT ;
1616 struct string_list included_refs = STRING_LIST_INIT_NODUP ;
17- struct pack_refs_opts pack_refs_opts = {
17+ struct refs_optimize_opts optimize_opts = {
1818 .exclusions = & excludes ,
1919 .includes = & included_refs ,
20- .flags = PACK_REFS_PRUNE ,
20+ .flags = REFS_OPTIMIZE_PRUNE ,
2121 };
2222 struct string_list option_excluded_refs = STRING_LIST_INIT_NODUP ;
2323 struct string_list_item * item ;
@@ -26,9 +26,9 @@ int pack_refs_core(int argc,
2626
2727 struct option opts [] = {
2828 OPT_BOOL (0 , "all" , & pack_all , N_ ("pack everything" )),
29- OPT_BIT (0 , "prune" , & pack_refs_opts .flags , N_ ("prune loose refs (default)" ), PACK_REFS_PRUNE ),
30- OPT_BIT (0 , "auto" , & pack_refs_opts .flags , N_ ("auto-pack refs as needed" ), PACK_REFS_AUTO ),
31- OPT_STRING_LIST (0 , "include" , pack_refs_opts .includes , N_ ("pattern" ),
29+ OPT_BIT (0 , "prune" , & optimize_opts .flags , N_ ("prune loose refs (default)" ), REFS_OPTIMIZE_PRUNE ),
30+ OPT_BIT (0 , "auto" , & optimize_opts .flags , N_ ("auto-pack refs as needed" ), REFS_OPTIMIZE_AUTO ),
31+ OPT_STRING_LIST (0 , "include" , optimize_opts .includes , N_ ("pattern" ),
3232 N_ ("references to include" )),
3333 OPT_STRING_LIST (0 , "exclude" , & option_excluded_refs , N_ ("pattern" ),
3434 N_ ("references to exclude" )),
@@ -39,15 +39,15 @@ int pack_refs_core(int argc,
3939 usage_with_options (usage_opts , opts );
4040
4141 for_each_string_list_item (item , & option_excluded_refs )
42- add_ref_exclusion (pack_refs_opts .exclusions , item -> string );
42+ add_ref_exclusion (optimize_opts .exclusions , item -> string );
4343
4444 if (pack_all )
45- string_list_append (pack_refs_opts .includes , "*" );
45+ string_list_append (optimize_opts .includes , "*" );
4646
47- if (!pack_refs_opts .includes -> nr )
48- string_list_append (pack_refs_opts .includes , "refs/tags/*" );
47+ if (!optimize_opts .includes -> nr )
48+ string_list_append (optimize_opts .includes , "refs/tags/*" );
4949
50- ret = refs_optimize (get_main_ref_store (repo ), & pack_refs_opts );
50+ ret = refs_optimize (get_main_ref_store (repo ), & optimize_opts );
5151
5252 clear_ref_exclusions (& excludes );
5353 string_list_clear (& included_refs , 0 );
0 commit comments