@@ -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 > ,
@@ -764,7 +764,7 @@ define_config! {
764764 verbose_tests: Option <bool > = "verbose-tests" ,
765765 optimize_tests: Option <bool > = "optimize-tests" ,
766766 codegen_tests: Option <bool > = "codegen-tests" ,
767- ignore_git : Option <bool > = "ignore -git" ,
767+ omit_git_hash : Option <bool > = "omit -git-hash " ,
768768 dist_src: Option <bool > = "dist-src" ,
769769 save_toolstates: Option <String > = "save-toolstates" ,
770770 codegen_backends: Option <Vec <String >> = "codegen-backends" ,
@@ -1097,7 +1097,7 @@ impl Config {
10971097 let mut debuginfo_level_tools = None ;
10981098 let mut debuginfo_level_tests = None ;
10991099 let mut optimize = None ;
1100- let mut ignore_git = None ;
1100+ let mut omit_git_hash = None ;
11011101
11021102 if let Some ( rust) = toml. rust {
11031103 debug = rust. debug ;
@@ -1118,7 +1118,7 @@ impl Config {
11181118 . map ( |v| v. expect ( "invalid value for rust.split_debuginfo" ) )
11191119 . unwrap_or ( SplitDebuginfo :: default_for_platform ( & config. build . triple ) ) ;
11201120 optimize = rust. optimize ;
1121- ignore_git = rust. ignore_git ;
1121+ omit_git_hash = rust. omit_git_hash ;
11221122 config. rust_new_symbol_mangling = rust. new_symbol_mangling ;
11231123 set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
11241124 set ( & mut config. codegen_tests , rust. codegen_tests ) ;
@@ -1175,8 +1175,8 @@ impl Config {
11751175
11761176 // rust_info must be set before is_ci_llvm_available() is called.
11771177 let default = config. channel == "dev" ;
1178- config. ignore_git = ignore_git . unwrap_or ( default) ;
1179- config. rust_info = GitInfo :: new ( config. ignore_git , & config. src ) ;
1178+ config. omit_git_hash = omit_git_hash . unwrap_or ( default) ;
1179+ config. rust_info = GitInfo :: new ( config. omit_git_hash , & config. src ) ;
11801180
11811181 if let Some ( llvm) = toml. llvm {
11821182 match llvm. ccache {
0 commit comments