Skip to content

Run git add multiple times when too many files to add#335

Open
deshipu wants to merge 1 commit into
sunpy:mainfrom
deshipu:git-add-split
Open

Run git add multiple times when too many files to add#335
deshipu wants to merge 1 commit into
sunpy:mainfrom
deshipu:git-add-split

Conversation

@deshipu

@deshipu deshipu commented Jun 27, 2026

Copy link
Copy Markdown

When there are more than 1000 files to pass into the git add command, run that command multiple times, with up to 1000 files at a time, to avoid problems with too long command line.

Fixes #334

PR Description

When there are more than 1000 files to pass into the git add command, run that command multiple times, with up to 1000 files at a time, to avoid problems with too long command line.

Fixes #334

AI Assistance Disclosure

AI tools were used for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding
  • No AI tools were used

Regardless of AI use, the human contributor remains fully responsible for correctness, design choices, licensing compatibility, and long-term maintainability.

When there are more than 1000 files to pass into the
`git add` command, run that command multiple times, with
up to 1000 files at a time, to avoid problems with too
long command line.

Fixes sunpy#334
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.

Deployment fails on the "git add" step if the blog has too many files

1 participant