Skip to content

Commit 62c48c6

Browse files
committed
cmd/git(fix[Git]): Align class annotations with instance variable names
why: Class-level annotations used singular names (remote, branch) but instance variables used plural names (self.remotes, self.branches), causing IDE autocomplete confusion. what: - Change `remote:` to `remotes:` to match self.remotes - Change `branch:` to `branches:` to match self.branches - Add missing annotations: submodules, worktrees, notes, reflog
1 parent 1951dc1 commit 62c48c6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libvcs/cmd/git.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ class Git:
2525

2626
# Sub-commands
2727
submodule: GitSubmoduleCmd
28-
remote: GitRemoteManager
28+
submodules: GitSubmoduleManager
29+
remotes: GitRemoteManager
2930
stash: GitStashCmd # Deprecated: use stashes
3031
stashes: GitStashManager
31-
branch: GitBranchManager
32+
branches: GitBranchManager
3233
tags: GitTagManager
34+
worktrees: GitWorktreeManager
35+
notes: GitNotesManager
36+
reflog: GitReflogManager
3337

3438
def __init__(
3539
self,

0 commit comments

Comments
 (0)