Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces enhancements to the
GitClient
module, focusing on improving search functionality and code organization. Key changes include adding support for searching commits by file or directory paths, refactoringGitLog
to streamline argument handling, and simplifying the creation ofGitLog
instances inLogStore
.Search Functionality Enhancements:
SearchKind
case (path
) to enable searching commits that modify specific file or directory paths. UpdatedSearchKind
with labels and descriptions for the new search type. ([[1]](https://github.com/maoyama/Tempo/pull/153/files#diff-e2f1ffd385455ac9df914b5a077d257bdd4c9d0f9372541e625d70da74465f07L11-R11)
,[[2]](https://github.com/maoyama/Tempo/pull/153/files#diff-e2f1ffd385455ac9df914b5a077d257bdd4c9d0f9372541e625d70da74465f07R27-R28)
,[[3]](https://github.com/maoyama/Tempo/pull/153/files#diff-e2f1ffd385455ac9df914b5a077d257bdd4c9d0f9372541e625d70da74465f07R46-R47)
,[[4]](https://github.com/maoyama/Tempo/pull/153/files#diff-e2f1ffd385455ac9df914b5a077d257bdd4c9d0f9372541e625d70da74465f07R65-R66)
)SearchTokensHandler
to include the newpath
search kind in token filtering logic. ([GitClient/Models/SearchTokensHandler.swiftL31-R76](https://github.com/maoyama/Tempo/pull/153/files#diff-f7bec91803b611b449f7c79471b9dadde937cf2beebc3b84d5f8b9988c1dd4abL31-R76)
)Code Refactoring and Simplification:
GitLog
arguments: Added apaths
property toGitLog
and adjusted argument handling to support path-based filtering. Moved the--topo-order
argument to ensure proper ordering. ([[1]](https://github.com/maoyama/Tempo/pull/153/files#diff-37eff570e1f5e2291c5bd8370430f624c8ea799690b6965d120eb76bc4253fccR26-R27)
,[[2]](https://github.com/maoyama/Tempo/pull/153/files#diff-37eff570e1f5e2291c5bd8370430f624c8ea799690b6965d120eb76bc4253fccL57-R62)
,[[3]](https://github.com/maoyama/Tempo/pull/153/files#diff-37eff570e1f5e2291c5bd8370430f624c8ea799690b6965d120eb76bc4253fccR76)
)LogStore
logic: Created a helper methodgitLog
for constructingGitLog
instances, reducing redundancy in multiple places whereGitLog
was instantiated. ([[1]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522R54-R67)
,[[2]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522L72-R90)
,[[3]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522L89-R99)
,[[4]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522L114-R123)
,[[5]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522L170-R165)
,[[6]](https://github.com/maoyama/Tempo/pull/153/files#diff-83d76bf6bb027587384a3aaad45adfe25c0b97840e863834478b4f9c90442522L190-R179)
)UI Improvements:
FolderView
to display tooltips (help
) for search token kinds, providing additional context for users. ([GitClient/Views/Folder/FolderView.swiftL94-R96](https://github.com/maoyama/Tempo/pull/153/files#diff-7c23e0932cd90b6072f70acc6ed6eb514b0ad4ec63a1dfc83d738cd241f9392eL94-R96)
)