Skip to content

Commit 76e2337

Browse files
author
Dai Hung PHAM
committed
delete no use code
1 parent 1351fa5 commit 76e2337

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/gitingest/ingest_from_query.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -165,28 +165,7 @@ def scan_directory(
165165
if is_file and query["include_patterns"]:
166166
if not should_include(item_path, base_path, include_patterns):
167167
result["ignore_content"] = True
168-
continue
169-
170-
stats["total_files"] += 1
171-
stats["total_size"] += file_size
172-
173-
if stats["total_files"] > MAX_FILES:
174-
print(f"Maximum file limit ({MAX_FILES}) reached")
175-
return result
176-
177-
is_text = is_text_file(real_path)
178-
content = read_file_content(real_path) if is_text else "[Non-text file]"
179-
180-
child = {
181-
"name": item,
182-
"type": "file",
183-
"size": file_size,
184-
"content": content,
185-
"path": item_path,
186-
}
187-
result["children"].append(child)
188-
result["size"] += file_size
189-
result["file_count"] += 1
168+
continue
190169

191170
elif os.path.isdir(real_path):
192171
subdir = scan_directory(

0 commit comments

Comments
 (0)