@@ -77,7 +77,7 @@ pub struct Config {
7777 pub tools : Option < HashSet < String > > ,
7878 pub sanitizers : bool ,
7979 pub profiler : bool ,
80- pub ignore_git : bool ,
80+ pub omit_git_hash : bool ,
8181 pub exclude : Vec < TaskPath > ,
8282 pub include_default_paths : bool ,
8383 pub rustc_error_format : Option < String > ,
@@ -755,7 +755,7 @@ define_config! {
755755 verbose_tests: Option <bool > = "verbose-tests" ,
756756 optimize_tests: Option <bool > = "optimize-tests" ,
757757 codegen_tests: Option <bool > = "codegen-tests" ,
758- ignore_git : Option <bool > = "ignore -git" ,
758+ omit_git_hash : Option <bool > = "omit -git-hash " ,
759759 dist_src: Option <bool > = "dist-src" ,
760760 save_toolstates: Option <String > = "save-toolstates" ,
761761 codegen_backends: Option <Vec <String >> = "codegen-backends" ,
@@ -1088,7 +1088,7 @@ impl Config {
10881088 let mut debuginfo_level_tools = None ;
10891089 let mut debuginfo_level_tests = None ;
10901090 let mut optimize = None ;
1091- let mut ignore_git = None ;
1091+ let mut omit_git_hash = None ;
10921092
10931093 if let Some ( rust) = toml. rust {
10941094 debug = rust. debug ;
@@ -1109,7 +1109,7 @@ impl Config {
11091109 . map ( |v| v. expect ( "invalid value for rust.split_debuginfo" ) )
11101110 . unwrap_or ( SplitDebuginfo :: default_for_platform ( & config. build . triple ) ) ;
11111111 optimize = rust. optimize ;
1112- ignore_git = rust. ignore_git ;
1112+ omit_git_hash = rust. omit_git_hash ;
11131113 config. rust_new_symbol_mangling = rust. new_symbol_mangling ;
11141114 set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
11151115 set ( & mut config. codegen_tests , rust. codegen_tests ) ;
@@ -1166,8 +1166,8 @@ impl Config {
11661166
11671167 // rust_info must be set before is_ci_llvm_available() is called.
11681168 let default = config. channel == "dev" ;
1169- config. ignore_git = ignore_git . unwrap_or ( default) ;
1170- config. rust_info = GitInfo :: new ( config. ignore_git , & config. src ) ;
1169+ config. omit_git_hash = omit_git_hash . unwrap_or ( default) ;
1170+ config. rust_info = GitInfo :: new ( config. omit_git_hash , & config. src ) ;
11711171
11721172 if let Some ( llvm) = toml. llvm {
11731173 match llvm. ccache {
0 commit comments