@@ -130,49 +130,49 @@ function M.project_files_to_project_dirs(project_files, cwd)
130130 return project_dirs
131131end
132132
133- --- Git file status for an absolute path with optional fallback
133+ --- Git file status for an absolute path
134134--- @param parent_ignored boolean
135135--- @param status table ?
136136--- @param path string
137- --- @param path_fallback string ?
138- --- @return GitStatus
137+ --- @param path_fallback string ? alternative file path when no other file status
138+ --- @return GitNodeStatus
139139function M .git_status_file (parent_ignored , status , path , path_fallback )
140- --- @type GitStatus
141- local st = {}
140+ --- @type GitNodeStatus
141+ local ns = {}
142142
143143 if parent_ignored then
144- st .file = " !!"
144+ ns .file = " !!"
145145 elseif status and status .files then
146- st .file = status .files [path ] or status .files [path_fallback ]
146+ ns .file = status .files [path ] or status .files [path_fallback ]
147147 end
148148
149- return st
149+ return ns
150150end
151151
152- --- Git file and directory status for an absolute path with optional file fallback
152+ --- Git file and directory status for an absolute path
153153--- @param parent_ignored boolean
154154--- @param status table ?
155155--- @param path string
156- --- @param path_file string ? alternative file path when no other file status
157- --- @return GitStatus ?
158- function M .git_status_dir (parent_ignored , status , path , path_file )
159- --- @type GitStatus ?
160- local st
156+ --- @param path_fallback string ? alternative file path when no other file status
157+ --- @return GitNodeStatus ?
158+ function M .git_status_dir (parent_ignored , status , path , path_fallback )
159+ --- @type GitNodeStatus ?
160+ local ns
161161
162162 if parent_ignored then
163- st = {}
164- st .file = " !!"
163+ ns = {}
164+ ns .file = " !!"
165165 elseif status then
166- st = {}
167- st .file = status .files and (status .files [path ] or status .files [path_file ])
166+ ns = {}
167+ ns .file = status .files and (status .files [path ] or status .files [path_fallback ])
168168 if status .dirs then
169- st .dir = {}
170- st .dir .direct = status .dirs .direct and status .dirs .direct [path ]
171- st .dir .indirect = status .dirs .indirect and status .dirs .indirect [path ]
169+ ns .dir = {}
170+ ns .dir .direct = status .dirs .direct and status .dirs .direct [path ]
171+ ns .dir .indirect = status .dirs .indirect and status .dirs .indirect [path ]
172172 end
173173 end
174174
175- return st
175+ return ns
176176end
177177
178178function M .setup (opts )
0 commit comments