| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: < 0 if a is before b; 0 if a equals b; >0 if a is after b.first parsed version string. a, int[] second parsed version string. b)Compare two version strings for natural ordering. |
| private static int[] | |
| public static boolean | Returns: true if the client has the chunked encoding bug.parsed version of the Git client software. version, HttpServletRequest incoming HTTP request. request)
Deprecated
no widely used Git versions need this any more
Check if a Git client has the known chunked request body encoding bug. |
| public static boolean | Returns: true if the bug is present.parsed version of the Git client software. version)
Deprecated
no widely used Git versions need this any more
Check if a Git client has the known push status bug. |
| public static int[] | Returns: maximum version array, indicating an invalid version of Git.An invalid version of Git |
| public static int[] | Returns: components of the version string.invalidVersion() if
the version string cannot be parsed.git client version string, of the form "git/1.7.9". version)Parse a Git client User-Agent header value. |
| private static int[] | |
| public static String | Returns: a string, e.g. "1.6.6.0".the parsed version array. ver)Convert a parsed version back to a string. |
| ClientVersionUtil | back to summary |
|---|---|
| private ClientVersionUtil() | |
| compare | back to summary |
|---|---|
| public static int compare(int[] a, int[] b) Compare two version strings for natural ordering.
| |
| grow | back to summary |
|---|---|
| private static int[] grow(int[] tmp) | |
| hasChunkedEncodingRequestBug | back to summary |
|---|---|
| public static boolean hasChunkedEncodingRequestBug(int[] version, HttpServletRequest request)
Deprecated no widely used Git versions need this any more Check if a Git client has the known chunked request body encoding bug. Git 1.7.5 contains a unique bug where chunked requests are malformed. This applies to both fetch and push.
| |
| hasPushStatusBug | back to summary |
|---|---|
| public static boolean hasPushStatusBug(int[] version)
Deprecated no widely used Git versions need this any more Check if a Git client has the known push status bug. These buggy clients do not display the status report from a failed push over HTTP.
| |
| invalidVersion | back to summary |
|---|---|
| public static int[] invalidVersion() An invalid version of Git
| |
| parseVersion | back to summary |
|---|---|
| public static int[] parseVersion(String version) Parse a Git client User-Agent header value.
| |
| splitVersion | back to summary |
|---|---|
| private static int[] splitVersion(String versionString) | |
| toString | back to summary |
|---|---|
| public static String toString(int[] ver) Convert a parsed version back to a string.
| |