]> source.dussan.org Git - jgit.git/commit
Expose the received pack size in ReceivePack 16/22716/2
authorSaša Živkov <sasa.zivkov@sap.com>
Fri, 28 Feb 2014 17:34:59 +0000 (18:34 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 2 Mar 2014 00:52:06 +0000 (01:52 +0100)
commit835ab30743603055c9007f8d570073c39ddad236
treeb5d67bfc96f91a731bffd1cca4a22a40e5ca2158
parentef3d864b1e3eb6daeb7b9923ec9eb38cce69db6e
Expose the received pack size in ReceivePack

PostReceiveHooks can make use of this information to, for example,
update a cached size of the Git repository.

Change-Id: I2bf1200959a50531e2155a7609c96035ba45b10d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/MeasurePackSizeTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectoryPackParser.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java