@@ -25,7 +25,7 @@ async def execute(
25
25
password : "Optional[str]" = None ,
26
26
) -> "Tuple[int, str, str]" :
27
27
"""Asynchronously execute a command.
28
-
28
+
29
29
Args:
30
30
cmdline (List[str]): Command line to be executed
31
31
cwd (Optional[str]): Current working directory
@@ -113,7 +113,7 @@ def __init__(self, contents_manager):
113
113
114
114
async def config (self , top_repo_path , ** kwargs ):
115
115
"""Get or set Git options.
116
-
116
+
117
117
If no kwargs, all options are returned. Otherwise kwargs are set.
118
118
"""
119
119
response = {"code" : 1 }
@@ -154,12 +154,12 @@ async def changed_files(self, base=None, remote=None, single_commit=None):
154
154
There are two reserved "refs" for the base
155
155
1. WORKING : Represents the Git working tree
156
156
2. INDEX: Represents the Git staging area / index
157
-
157
+
158
158
Keyword Arguments:
159
159
single_commit {string} -- The single commit ref
160
160
base {string} -- the base Git ref
161
161
remote {string} -- the remote Git ref
162
-
162
+
163
163
Returns:
164
164
dict -- the response of format {
165
165
"code": int, # Command status code
@@ -602,12 +602,12 @@ async def add_all_untracked(self, top_repo_path):
602
602
if status ["code" ] != 0 :
603
603
return status
604
604
605
- unstaged = []
605
+ untracked = []
606
606
for f in status ["files" ]:
607
607
if f ["x" ]== "?" and f ["y" ]== "?" :
608
- unstaged .append (f ["from" ].strip ('"' ))
608
+ untracked .append (f ["from" ].strip ('"' ))
609
609
610
- return await self .add (unstaged , top_repo_path )
610
+ return await self .add (untracked , top_repo_path )
611
611
612
612
async def reset (self , filename , top_repo_path ):
613
613
"""
0 commit comments