Skip to content

Commit f649bd5

Browse files
committed
Revert bad commit
1 parent dfe7250 commit f649bd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/wcgw/client/repo_ops/repo_context.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_recent_git_files(repo: Repository, count: int = 10) -> list[str]:
141141
return recent_files
142142

143143

144-
def get_repo_context(file_or_repo_path: str) -> tuple[str, Path]:
144+
def get_repo_context(file_or_repo_path: str, max_files: int) -> tuple[str, Path]:
145145
file_or_repo_path_ = Path(file_or_repo_path).absolute()
146146

147147
repo = find_ancestor_with_git(file_or_repo_path_)
@@ -159,11 +159,11 @@ def get_repo_context(file_or_repo_path: str) -> tuple[str, Path]:
159159
else:
160160
context_dir = file_or_repo_path_
161161

162-
all_files = get_all_files_max_depth(str(context_dir), 10, repo)
163-
164162
# Load workspace stats from the context directory
165163
workspace_stats = load_workspace_stats(str(context_dir))
166164

165+
all_files = get_all_files_max_depth(str(context_dir), 10, repo)
166+
167167
# Calculate probabilities in batch
168168
path_scores = PATH_SCORER.calculate_path_probabilities_batch(all_files)
169169

0 commit comments

Comments
 (0)