Skip to main content

calculate_relevance

Function calculate_relevance 

Source
pub fn calculate_relevance<F>(
    working_files: &[String],
    events: &[&GitEvent],
    get_commit_files: F,
) -> Vec<RelevanceScore>
where F: Fn(&str) -> Option<Vec<String>>,
Expand description

コミットの関連スコアを計算

working_files: ワーキングツリーで変更されているファイル events: イベント一覧 get_commit_files: コミットのファイル一覧を取得するクロージャ