fix: Restore missing lines and refactor setup_diff_paths_and_compression
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
@@ -23,10 +23,6 @@ fn validate_diff_args(cmd: &mut Command, ids: &Vec<i64>, tags: &Vec<String>) ->
|
||||
/// * `cmd` - Command instance for error reporting
|
||||
/// * `ids` - Vector of item IDs
|
||||
/// * `tags` - Vector of tags (should be empty for diff mode)
|
||||
///
|
||||
/// # Returns
|
||||
///
|
||||
/// * `Result<()>` - Success if validation passes, error with validation message
|
||||
fn validate_diff_args(cmd: &mut Command, ids: &Vec<i64>, tags: &Vec<String>) {
|
||||
if !tags.is_empty() {
|
||||
cmd.error(
|
||||
@@ -97,4 +93,9 @@ fn setup_diff_paths_and_compression(
|
||||
let item_b_id = item_b.item.id.ok_or_else(|| anyhow::anyhow!("Item B missing ID"))?;
|
||||
|
||||
// Use the service's data path to construct proper file paths
|
||||
let data_path = item_service.get_data
|
||||
let data_path = item_service.get_data_path();
|
||||
let item_a_path = data_path.join(item_a_id.to_string());
|
||||
let item_b_path = data_path.join(item_b_id.to_string());
|
||||
|
||||
Ok((item_a_path, item_b_path))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user