Skip to content

Commit 529a29c

Browse files
committed
CHANGES(docs): Document breaking API changes for 0.48.x
why: Users need migration guidance for renamed parameters and methods. what: - Add Breaking changes section for API naming consistency - Document all _all parameter renamings in cmd/git.py - Document remotes() and remote() renames in sync/git.py - Include migration examples with before/after code
1 parent 8c96998 commit 529a29c

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

‎CHANGES‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,49 @@ $ uv add libvcs --prerelease allow
2020
_Notes on the upcoming release will go here._
2121
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE -->
2222

23+
### Breaking changes
24+
25+
#### API Naming Consistency (#507)
26+
27+
Renamed parameters and methods to follow Python community conventions (Django, pytest, Sphinx patterns).
28+
29+
**`libvcs.cmd.git`: Renamed `_all` parameters to descriptive names:**
30+
31+
| Method | Old Parameter | New Parameter |
32+
|--------|---------------|---------------|
33+
| `clone()` | `_all` | `all_branches` |
34+
| `fetch()` | `_all` | `all_remotes` |
35+
| `pull()` | `_all` | `all_remotes` |
36+
| `help()` | `_all` | `show_all` |
37+
| `rev_list()` | `_all` | `include_all_refs` |
38+
| `remote.get_url()` | `_all` | `all_urls` |
39+
| `stash.save()` | `_all` | `include_ignored` |
40+
| `stashes.push()` | `_all` | `include_ignored` |
41+
| `branches.ls()` | `_all` | `all_branches` |
42+
43+
**`libvcs.sync.git`: Renamed getter methods with `get_` prefix:**
44+
45+
| Old Method | New Method |
46+
|------------|------------|
47+
| `remotes()` | `get_remotes()` |
48+
| `remote(name)` | `get_remote(name)` |
49+
50+
**Migration example:**
51+
52+
```python
53+
# Before
54+
git.fetch(_all=True)
55+
git.stash.save(_all=True)
56+
repo.remotes()
57+
repo.remote("origin")
58+
59+
# After
60+
git.fetch(all_remotes=True)
61+
git.stash.save(include_ignored=True)
62+
repo.get_remotes()
63+
repo.get_remote("origin")
64+
```
65+
2366
## libvcs 0.47.0 (2026-11-28)
2467

2568
libvcs 0.47.0 adds recoverable dirty-checkout synchronization, typed backend

0 commit comments

Comments
 (0)