Commit 2a97d06
Fix _apply_move scope, _revision_only_mode branch guard, and docstrings
- git.py _apply_move: narrow try/except to cover only move_directory_contents
so the "didn't match any files" warning is not emitted for a safe_rm
failure after a successful move; return early on FileNotFoundError
- subproject.py _revision_only_mode: remove the not-branch guard so the
predicate matches check_wanted_with_local (revision + revision_is_enough
is sufficient, branch presence is irrelevant)
- git.py ignored_files / any_changes_or_untracked: document the intentional
asymmetry — ignored_files returns [] for a missing path while
any_changes_or_untracked raises RuntimeError because callers must verify
existence first
https://claude.ai/code/session_01Doq8oQtBRH4afusvp9Dv4p1 parent 2ee297c commit 2a97d06
2 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
| 377 | + | |
382 | 378 | | |
383 | 379 | | |
384 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 446 | | |
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
| |||
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
572 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
| |||
591 | 596 | | |
592 | 597 | | |
593 | 598 | | |
594 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
595 | 605 | | |
596 | 606 | | |
597 | 607 | | |
| |||
0 commit comments