You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/but-hunk-assignment/src/lib.rs
+37-34Lines changed: 37 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ pub fn assign(
275
275
&applied_stacks,
276
276
MultipleOverlapping::SetMostLines,
277
277
true,
278
-
)?;
278
+
);
279
279
280
280
// Reconcile with the requested changes
281
281
let with_requests = reconcile::assignments(
@@ -284,17 +284,17 @@ pub fn assign(
284
284
&applied_stacks,
285
285
MultipleOverlapping::SetMostLines,
286
286
true,
287
-
)?;
287
+
);
288
288
289
289
// Reconcile with hunk locks
290
-
let lock_assignments = hunk_dependency_assignments(deps)?;
290
+
let lock_assignments = hunk_dependency_assignments(deps);
291
291
let with_locks = reconcile::assignments(
292
292
&with_requests,
293
293
&lock_assignments,
294
294
&applied_stacks,
295
295
MultipleOverlapping::SetNone,
296
296
false,
297
-
)?;
297
+
);
298
298
299
299
state::set_assignments(db, with_locks.clone())?;
300
300
@@ -319,16 +319,29 @@ pub fn assign(
319
319
Ok(rejections)
320
320
}
321
321
322
-
/// Same as the `reconcile_with_worktree_and_locks` function, but if the operation produces an error, it will create a fallback set of assignments from the worktree changes alone.
323
-
/// An optional error is returned alongside the assignments, which will be `None` if the operation was successful and it will be set if the operation failed and a fallback was used.
324
-
///
325
-
/// The fallback can of course also fail, in which case the tauri operation will error out.
322
+
/// Similar to the `reconcile_with_worktree_and_locks` function.
323
+
/// TODO: figure out a better name for this function
// If there are locks towards more than one stack, this means double locking and the assignment None - the user can resolve this by partial committing.
0 commit comments