github.com/atlassian/git-lob@v0.0.0-20150806085256-2386a5ed291a/util/util_windows.go (about)

     1  // +build windows
     2  package util
     3  
     4  // Get the maximum number of arguments we want to try passing to the command line
     5  func GetMaxCommandLineArguments() int {
     6  	// Git doesn't allow more than 4096 file arguments so use that as a low-water mark
     7  	// No other OS limits on Windows, just shorter command line limits
     8  	return 4096
     9  }
    10  
    11  // Get the maximum length of a command on the command line
    12  func GetMaxCommandLineLength() int {
    13  	// < Win7 = 8191 - not supported?
    14  	// >= Win7 = 32768 (sub a a little for padding)
    15  	return 32000
    16  }