@@ -77,7 +77,7 @@ pub struct Config {
77
77
pub tools : Option < HashSet < String > > ,
78
78
pub sanitizers : bool ,
79
79
pub profiler : bool ,
80
- pub ignore_git : bool ,
80
+ pub omit_git_hash : bool ,
81
81
pub exclude : Vec < TaskPath > ,
82
82
pub include_default_paths : bool ,
83
83
pub rustc_error_format : Option < String > ,
@@ -764,7 +764,7 @@ define_config! {
764
764
verbose_tests: Option <bool > = "verbose-tests" ,
765
765
optimize_tests: Option <bool > = "optimize-tests" ,
766
766
codegen_tests: Option <bool > = "codegen-tests" ,
767
- ignore_git : Option <bool > = "ignore -git" ,
767
+ omit_git_hash : Option <bool > = "omit -git-hash " ,
768
768
dist_src: Option <bool > = "dist-src" ,
769
769
save_toolstates: Option <String > = "save-toolstates" ,
770
770
codegen_backends: Option <Vec <String >> = "codegen-backends" ,
@@ -1097,7 +1097,7 @@ impl Config {
1097
1097
let mut debuginfo_level_tools = None ;
1098
1098
let mut debuginfo_level_tests = None ;
1099
1099
let mut optimize = None ;
1100
- let mut ignore_git = None ;
1100
+ let mut omit_git_hash = None ;
1101
1101
1102
1102
if let Some ( rust) = toml. rust {
1103
1103
debug = rust. debug ;
@@ -1118,7 +1118,7 @@ impl Config {
1118
1118
. map ( |v| v. expect ( "invalid value for rust.split_debuginfo" ) )
1119
1119
. unwrap_or ( SplitDebuginfo :: default_for_platform ( & config. build . triple ) ) ;
1120
1120
optimize = rust. optimize ;
1121
- ignore_git = rust. ignore_git ;
1121
+ omit_git_hash = rust. omit_git_hash ;
1122
1122
config. rust_new_symbol_mangling = rust. new_symbol_mangling ;
1123
1123
set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
1124
1124
set ( & mut config. codegen_tests , rust. codegen_tests ) ;
@@ -1175,8 +1175,8 @@ impl Config {
1175
1175
1176
1176
// rust_info must be set before is_ci_llvm_available() is called.
1177
1177
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 ) ;
1180
1180
1181
1181
if let Some ( llvm) = toml. llvm {
1182
1182
match llvm. ccache {
0 commit comments