pub fn generate_smart_stamp_hash(
builder: &Builder<'_>,
dir: &Path,
additional_input: &str,
) -> String
Expand description
Computes a hash representing the state of a repository/submodule and additional input.
It uses git diff
for the actual changes, and git status
for including the untracked
files in the specified directory. The additional input is also incorporated into the
computation of the hash.
§Parameters
dir
: A reference to the directory path of the target repository/submodule.additional_input
: An additional input to be included in the hash.
§Panics
In case of errors during git
command execution (e.g., in tarball sources), default values
are used to prevent panics.