include added untracked files to to-record

tzemanovic
Jan 27, 2026, 3:11 PM
A5JIEPTGP7TMEQTSPVMWOML44OM2D5R3QOVSTAO6UE6GYDQ4K66AC

Dependencies

Change contents

  • edit in inflorescence_model/src/to_record.rs at line 172
    [8.4900]
    [7.7172]
    }
    /// Add an untracked file to explicitly include in to-record if the overall
    /// state is partial or exclude
    pub fn add_untracked_file_to_record(state: &mut State, path: file::Path) {
    if matches!(state.overall, PickSet::Exclude | PickSet::Partial) {
    state.files.insert(path, PickSet::Include);
    state.overall = PickSet::Partial;
    }
  • edit in inflorescence_model/src/to_record.rs at line 183
    [7.7175]
    [7.7175]
    /// Remove an untracked file from to-record
    pub fn rm_untracked_file_to_record(
    state: &mut State,
    path: &file::Path,
    changed_files: &repo::ChangedFiles,
    ) {
    state.files.remove(path);
    state.overall = determine_overall_pick(state, changed_files);
    }
  • edit in inflorescence/src/main.rs at line 814
    [6.86690]
    [6.86690]
    to_record,
  • edit in inflorescence/src/main.rs at line 850
    [4.5327]
    [3.609]
    // Add this file to to-record
    to_record::add_untracked_file_to_record(to_record, path.clone());
  • edit in inflorescence/src/main.rs at line 886
    [6.87592]
    [6.87592]
    to_record,
  • edit in inflorescence/src/main.rs at line 927
    [4.6308]
    [3.1705]
    // Rm this file from to-record
    to_record::rm_untracked_file_to_record(
    to_record,
    path,
    &repo.changed_files,
    );