"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.rs" between
fd-8.1.0.tar.gz and fd-8.1.1.tar.gz

About: fd is a simple, fast and user-friendly alternative to "find".

main.rs  (fd-8.1.0):main.rs  (fd-8.1.1)
skipping to change at line 151 skipping to change at line 151
regex::escape(pattern) regex::escape(pattern)
} else { } else {
String::from(pattern) String::from(pattern)
}; };
// The search will be case-sensitive if the command line flag is set or // The search will be case-sensitive if the command line flag is set or
// if the pattern has an uppercase character (smart case). // if the pattern has an uppercase character (smart case).
let case_sensitive = !matches.is_present("ignore-case") let case_sensitive = !matches.is_present("ignore-case")
&& (matches.is_present("case-sensitive") || pattern_has_uppercase_char(& pattern_regex)); && (matches.is_present("case-sensitive") || pattern_has_uppercase_char(& pattern_regex));
#[cfg(windows)]
let ansi_colors_support =
ansi_term::enable_ansi_support().is_ok() || std::env::var_os("TERM").is_
some();
#[cfg(not(windows))]
let ansi_colors_support = true;
let interactive_terminal = atty::is(Stream::Stdout); let interactive_terminal = atty::is(Stream::Stdout);
let colored_output = match matches.value_of("color") { let colored_output = match matches.value_of("color") {
Some("always") => true, Some("always") => true,
Some("never") => false, Some("never") => false,
_ => env::var_os("NO_COLOR").is_none() && interactive_terminal, _ => ansi_colors_support && env::var_os("NO_COLOR").is_none() && interac tive_terminal,
}; };
let path_separator = matches.value_of("path-separator").map(|str| str.to_own ed()); let path_separator = matches.value_of("path-separator").map(|str| str.to_own ed());
#[cfg(windows)]
let colored_output = colored_output && ansi_term::enable_ansi_support().is_o
k();
let ls_colors = if colored_output { let ls_colors = if colored_output {
Some(LsColors::from_env().unwrap_or_default()) Some(LsColors::from_env().unwrap_or_default())
} else { } else {
None None
}; };
let command = if let Some(args) = matches.values_of("exec") { let command = if let Some(args) = matches.values_of("exec") {
Some(CommandTemplate::new(args)) Some(CommandTemplate::new(args))
} else if let Some(args) = matches.values_of("exec-batch") { } else if let Some(args) = matches.values_of("exec-batch") {
Some(CommandTemplate::new_batch(args)?) Some(CommandTemplate::new_batch(args)?)
 End of changes. 3 change blocks. 
5 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)