Skip to content

Adds a field to individual sources that allows overriding the --recurse flag - #480

Draft
paulhovey wants to merge 1 commit into
jacebrowning:mainfrom
paulhovey:paulhovey/non-recursive
Draft

Adds a field to individual sources that allows overriding the --recurse flag#480
paulhovey wants to merge 1 commit into
jacebrowning:mainfrom
paulhovey:paulhovey/non-recursive

Conversation

@paulhovey

Copy link
Copy Markdown

When doing gitman update, there's an option for --recurse (which, this could probably be documented better, as it's only mentioned directly in the API page: https://gitman.readthedocs.io/en/latest/interfaces/api/ )

Sometimes I have multiple repositories but only want to recursively update some of them, and this is the functionality in this PR. There's a new flag in gitman.yml repositories that will override the --recurse flag if it is present, and default back to that flag if not present. That means existing functionality is unchanged, but users can choose to either recurse into directories of their choosing, or recurse into all except directories of their choosing.

@jacebrowning

Copy link
Copy Markdown
Owner

I'm not sure what --recurse flag you are referring to.

The --all flag in gitman update means to also pull in the latest versions of their dependencies rather than just checking out the last pinned version.

Does --depth perhaps fulfill your need?

@jacebrowning
jacebrowning marked this pull request as draft July 24, 2026 00:22
@jacebrowning
jacebrowning requested review from jacebrowning and removed request for jacebrowning July 24, 2026 00:22
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