[ https://issues.apache.org/jira/browse/SCM-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963055#comment-17963055 ]
ASF GitHub Bot commented on SCM-784: ------------------------------------ jira-importer opened a new issue, #1000: URL: https://github.com/apache/maven-scm/issues/1000 **[Stephen Connolly](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=stephenc)** opened **[SCM-784](https://issues.apache.org/jira/browse/SCM-784?redirect=false)** and commented SCM-697 has friends in Unix land too http://stackoverflow.com/questions/19354870/bash-command-line-and-input-limit So while the limit for most unixes is a lot larger than 8k, e.g. my mac is 256k and a lot of linux machines have a 128k limit Aside: `$ expr `getconf ARG_MAX` - `env|wc -c` - `env|wc -l` \* 4 - 2048` will tell you your limit There still is a limit, thus it would make sense to batch the add operation based on the size of the command line. The batch size would ideally be configurable with a default of 120k characters for unix and 8k characters for windows so that windows can get some batching benefits too --- **Affects:** 1.9.2 > git add may fail on *nix with *lots and lots* of files > ------------------------------------------------------ > > Key: SCM-784 > URL: https://issues.apache.org/jira/browse/SCM-784 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Bug > Components: maven-scm-provider-gitexe > Affects Versions: 1.9.2 > Reporter: Stephen Connolly > Priority: Minor > > SCM-697 has friends in Unix land too > http://stackoverflow.com/questions/19354870/bash-command-line-and-input-limit > So while the limit for most unixes is a lot larger than 8k, e.g. my mac is > 256k and a lot of linux machines have a 128k limit > Aside: > {{$ expr `getconf ARG_MAX` - `env|wc -c` - `env|wc -l` \* 4 - 2048}} > will tell you your limit > There still is a limit, thus it would make sense to batch the add operation > based on the size of the command line. The batch size would ideally be > configurable with a default of 120k characters for unix and 8k characters for > windows so that windows can get some batching benefits too -- This message was sent by Atlassian Jira (v8.20.10#820010)