Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-12-02Prepare 5.1.16-SNAPSHOT buildsstable-5.1Matthias Sohn2-14/+14
Change-Id: I50e59e1e73a92fa4fe366398fb8141f5e2e289c1 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-12-02JGit v5.1.15.202012011955-rv5.1.15.202012011955-rMatthias Sohn2-2/+2
Change-Id: Icb4f04a40ab366cbacbb3fdf0db1748f27277fda Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-11-26Prepare 5.1.15-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I70246b66c76e865aef4e3adada3a507750ca7c63 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-11-26JGit v5.1.14.202011251942-rv5.1.14.202011251942-rMatthias Sohn2-2/+2
Change-Id: Ibe124988be39feaa029c3770777126dd87b18abc Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-02-11Prepare 5.1.14-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: Ic7d6f1a6c3123af1a1fa782f052b0cea3b6f28c6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-02-11JGit v5.1.13.202002110435-rv5.1.13.202002110435-rMatthias Sohn2-2/+2
Change-Id: Iedc8699ad1a24efe7ddb47ae919c75b9d36141d4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2020-01-06Fix unclosed resource warning in SmartOutputStreamMatthias Sohn1-14/+16
Change-Id: Ia4b96ae1c2cc9357802487384ee32a80ed40334b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-10-01Prepare 5.1.13-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: Ic1dca14924f49ad07eb5cd0570ce7ece9f319d0d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-10-01JGit v5.1.12.201910011832-rv5.1.12.201910011832-rMatthias Sohn2-2/+2
Change-Id: I69fef9b2cdc18bbf1c8b9b290fb3d190684be13c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-09-07Bazel: Add fixes for --incompatible_load_java_rules_from_bzlDavid Pursehouse1-0/+2
Change-Id: I24746335db132bf20f400cb3db400737596d4542 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2019-09-03Prepare 5.1.12-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I353ac3f23024063722abc7340bc9a6df3c615741 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-09-03JGit v5.1.11.201909031202-rv5.1.11.201909031202-rMatthias Sohn2-2/+2
Change-Id: I288acf670160b9bcd2d04f572a902b5838b4d4f8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-08-23Prepare 5.1.11-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I8608580424d0e523dcace63f83ae530ba78dbb15 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-08-23JGit v5.1.10.201908230655-rv5.1.10.201908230655-rMatthias Sohn2-2/+2
Change-Id: I68d15ebd6054bdeaf62e14cddb87724828db7943 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-08-21Prepare 5.1.10-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: If10afc8e663299a15db8c5fd0574fb51bf7e7ae9 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-08-21JGit v5.1.9.201908210455-rv5.1.9.201908210455-rMatthias Sohn2-2/+2
Change-Id: Iaade207292acb8b27e01aca7e1af97ad7db1e854 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-07-18Use Instant instead of milliseconds for filesystem timestamp handlingMatthias Sohn2-5/+12
This enables higher file timestamp resolution on filesystems like ext4, Mac APFS (1ns) or NTFS (100ns) providing high timestamp resolution on filesystem level. Note: - on some OSes Java 8,9 truncate milliseconds, see https://bugs.openjdk.java.net/browse/JDK-8177809, fixed in Java 10 - UnixFileAttributes truncates timestamp resolution to microseconds when converting the internal representation to FileTime exposed in the API, see https://bugs.openjdk.java.net/browse/JDK-8181493 - WindowsFileAttributes also provides only microsecond resolution Change-Id: I25ffff31a3c6f725fc345d4ddc2f26da3b88f6f2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-06-19Deprecate Constants.CHARACTER_ENCODING in favor of StandardCharsets.UTF_8David Pursehouse2-3/+4
Change-Id: I621ba174235a6fb56236e54d24bce704bb5afb28 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2019-06-05Prepare 5.1.9-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I60571e4e0bea04bb2c25ef3d0332a9ab6895db06 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-06-05JGit v5.1.8.201906050907-rv5.1.8.201906050907-rMatthias Sohn2-2/+2
Change-Id: Iae0ffe161df2ca8a800d21688d6b7d7419dfb640 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-04-20Prepare 5.1.8-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I331bbaefd42ef94673ae8565c9b2b3af9eadfda0 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-04-20JGit v5.1.7.201904200442-rv5.1.7.201904200442-rMatthias Sohn2-2/+2
Change-Id: Ifaa3a88c5e117912a8c691b8b8369dd9a17faebb Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-03-13Prepare 5.1.7-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: Ica716b2ad18f8390e75466430ef81c86ea06f004 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-03-13JGit v5.1.6.201903130242-rv5.1.6.201903130242-rMatthias Sohn2-2/+2
Change-Id: Iaf5e451f72dc8512afee99a9f3fb91aa348e3cf5 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-12-27Prepare 5.1.6-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: If3313d602aa57cfa031ba2c9ec03bd51b464dc19 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-12-27JGit v5.1.5.201812261915-rv5.1.5.201812261915-rMatthias Sohn2-2/+2
Change-Id: I249a440d1ca1c997343da942ae55fcb27a645b92 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-12-25Prepare 5.1.5-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I3eeb24b01a4f955e7e933238defb42635ebfec7d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-12-25JGit v5.1.4.201812251853-rv5.1.4.201812251853-rMatthias Sohn2-2/+2
Change-Id: I30ba167bcd8144074553d7446a45fa6be19584fe Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-20Prepare 5.1.4-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: Iee86860f3b4eb9f4af818c60342fd29465c0474c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-20JGit v5.1.3.201810200350-rv5.1.3.201810200350-rMatthias Sohn2-2/+2
Change-Id: Ib2c5a79d4fdf77680b7b65652fc3659527df27ad Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-06Prepare 5.1.3-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I75c1a01885115fc709ab37f181234264c3f7423a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-06JGit v5.1.2.201810061102-rv5.1.2.201810061102-rMatthias Sohn2-2/+2
Change-Id: Id34e4ae12a796460862edc37c5eb072314199bf4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-18Prepare 5.1.2-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I095d246e27de747a234bc058725454c222be51ce Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-18JGit v5.1.1.201809181055-rv5.1.1.201809181055-rMatthias Sohn2-2/+2
Change-Id: I2366444fca125139eadb6d513be721167a266d70 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-11Prepare 5.1.1-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: Ie220dd95fae18f894e2a04a5ae6d29a1e5a6d76b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-11JGit v5.1.0.201809111528-rv5.1.0.201809111528-rMatthias Sohn2-2/+2
Change-Id: I583bf7d60bccc876156be1f605bfda32b89cd08b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-05Prepare 5.1.0-SNAPSHOT buildsMatthias Sohn2-2/+2
Change-Id: I3d06c5237edae54b09f465f415f5a308b5e7ceff Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-05JGit v5.1.0.201809051400-rc1v5.1.0.201809051400-rc1Matthias Sohn2-2/+2
Change-Id: I0b53f95ee51d94da8b029c9bb10eb854ff9dd4f6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-09-04Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8David Pursehouse1-1/+2
Change-Id: I3b748620f067582afef20f144feebe40d0332be2 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2018-08-23refactor: simplify collection.toArray()Michael Keppler2-2/+2
On recent VMs, collection.toArray(new T[0]) is faster than collection.toArray(new T[collection.size()]). Since it is also more readable, it should now be the preferred way of collection to array conversion. https://shipilev.net/blog/2016/arrays-wisdom-ancients/ Change-Id: I80388532fb4b2b0663ee1fe8baa94f5df55c8442 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-06-05Merge branch 'stable-5.0'Jonathan Nieder3-6/+64
* stable-5.0: Teach UploadPack "filter" in protocol v2 fetch Refactor test of capabilities output Refactor v2 advertisement into own function Refactor parsing of "filter" into its own method Disallow unknown args to "fetch" in protocol v2 Teach UploadPack shallow fetch in protocol v2 Refactor unshallowCommits to local variable Add protocol v2 support in http Give info/refs services more control over response Change-Id: I1683902222e076e1091795e94790a264550afb7b Signed-off-by: Jonathan Nieder <jrn@google.com>
2018-06-05Add protocol v2 support in httpJonathan Tan2-3/+32
Teach UploadPack to support protocol v2 with non-bidirectional pipes, and add support to the HTTP protocol for v2. This is only activated if the repository's config has "protocol.version" equal to 2. Change-Id: I093a14acd2c3850b8b98e14936a716958f35a848 Helped-by: Matthias Sohn <matthias.sohn@sap.com> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Jonathan Nieder <jrn@google.com>
2018-06-05Give info/refs services more control over responseJonathan Tan1-3/+32
Currently, SmartServiceInfoRefs always prints "# service=serviceName" followed by a flush packet in response to an info/refs request, and then hands it off to the specific service class. Printing of "# service=serviceName" is mandated for protocol v0, but not v2. Therefore, the existing code works for protocol v0, but whenever a service that supports protocol v2 receives an info/refs request, it must first determine which protocol version is to be used (depending on, for example, the request and any relevant configuration variables), and then decide if "# service=serviceName" needs to be printed. Create a new method that v2-supporting service classes can override, covering the printing of both "# service=serviceName" and everything that the #advertise method prints. This will be used in a subsequent commit in which UploadPackServlet (and the other classes it uses) is updated to support protocol v2. Change-Id: Ia026b06e96a6b15937514096babd024ef77df1ea Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Jonathan Nieder <jrn@google.com>
2018-05-30Prepare 5.0.0-SNAPSHOT buildsMatthias Sohn2-2/+2
Change-Id: I9c4a0465f8e85041d24da97f4b4c7ad5f5eed3e4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-30JGit v5.0.0.201805301535-rc2v5.0.0.201805301535-rc2Matthias Sohn2-2/+2
Change-Id: Ifad678794525c01838b03e52bada66e1c089c5ae Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-23Prepare 5.1.0-SNAPSHOT buildsMatthias Sohn2-14/+14
Change-Id: I8523a993ae1f7b62573d7547273bc1356bf64fa7 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-22Prepare 5.0.0-SNAPSHOT buildsMatthias Sohn2-2/+2
Change-Id: Ie343ccf37f46168041046500a2e19acc80814cfe Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-22JGit v5.0.0.201805221745-rc1v5.0.0.201805221745-rc1Matthias Sohn2-2/+2
Change-Id: Ie2c35fab87f294b00f9754b07b60a848bf256b10 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-21InfoRefsServlet: Refactor to not use deprecated methodsDavid Pursehouse1-7/+1
- Replace RefDatabase#getRefs(String) with #getRefsByPrefix(String) - Replace RefAdvertiser#send(Map<String, Ref>) with #send(Collection<Ref>) Bug: 534731 Change-Id: I25b617c3b0c54793cf4ab5b62f002e17745a5377 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2018-05-18Remove further unnecessary 'final' keywordsHan-Wen Nienhuys12-20/+20
Remove it from * package private functions. * try blocks * for loops this was done with the following python script: $ cat f.py import sys import re import os def replaceFinal(m): return m.group(1) + "(" + m.group(2).replace('final ', '') + ")" methodDecl = re.compile(r"^([\t ]*[a-zA-Z_ ]+)\(([^)]*)\)") def subst(fn): input = open(fn) os.rename(fn, fn + "~") dest = open(fn, 'w') for l in input: l = methodDecl.sub(replaceFinal, l) dest.write(l) dest.close() for root, dirs, files in os.walk(".", topdown=False): for f in files: if not f.endswith('.java'): continue full = os.path.join(root, f) print full subst(full) Change-Id: If533a75a417594fc893e7c669d2c1f0f6caeb7ca Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>

Back to the top