| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -424,9 +424,9 @@ def _untracked_files(path: str, ignore: Sequence[str]) -> list[str]: | |||
| 424 | 424 | files = [] | |
| 425 | 425 | for line in result: | |
| 426 | 426 | if line.startswith("?"): | |
| 427 | - files.append(line[1:].strip()) | ||
| 428 | - for pattern in ignore: | ||
| 429 | - if pathlib.Path(line[1:].strip()).match(pattern): | ||
| 430 | - files.pop() | ||
| 431 | - break | ||
| 427 | + file_path = line[1:].strip() | ||
| 428 | + if not any( | ||
| 429 | + pathlib.Path(file_path).match(pattern) for pattern in ignore | ||
| 430 | + ): | ||
| 431 | + files.append(file_path) | ||
| 432 | 432 | return files | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -338,7 +338,6 @@ def create_diff( | |||
| 338 | 338 | ||
| 339 | 339 | if ignore: | |
| 340 | 340 | cmd.extend(["--", "."]) | |
| 341 | - ignore = ignore or [] | ||
| 342 | 341 | for ignore_path in ignore: | |
| 343 | 342 | cmd.append(f":(exclude){ignore_path}") | |
| 344 | 343 | result = run_on_cmdline(logger, cmd) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | Feature: Basic patch journey | |
| 2 | 2 | ||
| 3 | - The main user journey is for patching is: | ||
| 3 | + The main user journey for patching is: | ||
| 4 | 4 | - Adding a project to a manifest | |
| 5 | 5 | - Fetching the new project and committing it. | |
| 6 | 6 | - Changing files in the fetched project. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments