Paging with skip by maoyama · Pull Request #179 · maoyama/Changes (original) (raw)

Pull Request Overview

This PR introduces paging functionality through a new "skip" parameter for paginating git log retrieval and updates related tests. Key changes include:

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
GitClientTests/LogStoreTests.swift Updates the expected commit count for testing the refreshed paging behavior.
GitClient/Views/Folder/FolderView.swift Adds cancellation checks during folder refresh and synchronization.
GitClient/Models/Observables/LogStore.swift Refactors gitLog signature, updates documentation/comments, and adjusts pagination logic.
GitClient/Models/Commands/GitLog.swift Introduces the new skip parameter and updates git arguments accordingly.

Comments suppressed due to low confidence (2)

GitClientTests/LogStoreTests.swift:89

        #expect(store.commits.count == 1)

GitClient/Models/Observables/LogStore.swift:168