Skip to content

Commit a261e6b

Browse files
committed
cmd(svn,git): _list -> ls
1 parent 9ed7958 commit a261e6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libvcs/cmd/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
>>> git.remote.show()
6767
'origin'
6868
69-
>>> git.stash._list()
69+
>>> git.stash.ls()
7070
''
7171
"""
7272
#: Directory to check out
@@ -2791,7 +2791,7 @@ def run(
27912791
log_in_real_time=log_in_real_time,
27922792
)
27932793

2794-
def _list(
2794+
def ls(
27952795
self,
27962796
*,
27972797
# Pass-through to run()
@@ -2802,7 +2802,7 @@ def _list(
28022802
28032803
Examples
28042804
--------
2805-
>>> GitStashCmd(path=git_local_clone.path)._list()
2805+
>>> GitStashCmd(path=git_local_clone.path).ls()
28062806
''
28072807
"""
28082808
return self.run(

src/libvcs/cmd/svn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def info(
611611

612612
return self.run(["info", *local_flags])
613613

614-
def _list(self, *args: Any, **kwargs: Any) -> str:
614+
def ls(self, *args: Any, **kwargs: Any) -> str:
615615
"""List files in SVN repository (without downloading them).
616616
617617
Wraps `svn list

0 commit comments

Comments
 (0)