build_helper::git

Function warn_old_master_branch

source
pub fn warn_old_master_branch(config: &GitConfig<'_>, git_dir: &Path)
Expand description

Print a warning if the branch returned from updated_master_branch is old

For certain configurations of git repository, this remote will not be updated when running git pull.

This can result in formatting thousands of files instead of a dozen, so we should warn the user something is wrong.