Skip to content

feat: Add depth parameter to Fetch and Pull operations (#1605) #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

massimopaganigh
Copy link
Contributor

@massimopaganigh massimopaganigh commented Jul 21, 2025

Enhanced the Fetch and Pull classes to support a new depth parameter for specifying operation depth. Introduced properties in RepositorySettings for managing fetch and pull depth settings. Updated localization files to include new depth-related strings. Modified AddRemote and UI components to accommodate the new depth functionality, allowing user configuration of fetch and pull depth.

Screenshot 2025-07-21 115048

#1605

love-linger and others added 4 commits July 21, 2025 17:36
…#1605)

Enhanced the Fetch and Pull classes to support a new `depth` parameter for specifying operation depth. Introduced properties in RepositorySettings for managing fetch and pull depth settings. Updated localization files to include new depth-related strings. Modified AddRemote and UI components to accommodate the new depth functionality, allowing user configuration of fetch and pull depth.
@Copilot Copilot AI review requested due to automatic review settings July 21, 2025 09:59
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds depth parameter support to Git fetch and pull operations, allowing users to configure shallow clone operations. The implementation includes UI controls for enabling and configuring fetch/pull depth settings, backend parameter handling, and localization support.

  • Added depth parameter support to Fetch and Pull command classes with conditional argument inclusion
  • Introduced repository settings properties for managing fetch and pull depth configuration
  • Updated UI components to provide user controls for enabling and configuring depth settings

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Views/RepositoryConfigure.axaml Added UI controls for fetch and pull depth configuration with checkboxes and numeric inputs
src/ViewModels/RepositoryConfigure.cs Added view model properties for binding depth settings to UI controls
src/ViewModels/Repository.cs Updated auto-fetch implementation to use depth settings
src/ViewModels/Pull.cs Modified pull operation to include depth parameter from settings
src/ViewModels/Fetch.cs Updated fetch operations to use depth parameter from repository settings
src/ViewModels/AddRemote.cs Modified remote addition to use fetch depth settings
src/Resources/Locales/en_US.axaml Added localization strings for fetch and pull depth labels
src/Models/RepositorySettings.cs Added properties for storing fetch and pull depth configuration
src/Commands/Pull.cs Enhanced Pull command to accept and handle depth parameter
src/Commands/Fetch.cs Enhanced Fetch command to accept and handle depth parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants