Implement branch deletion for jgit, reusing previous packed-refs writing Charles O'Farrell (7): Refactor of WalkRemoteObjectDatabase ref writing into common class Refactor of RefUpdate force to call common updateImpl instead of duplication Minor refactor of constants, including log and ROOT_DIR Extract lockAndWriteFile method in RefDatabase for reuse Added removePackedRef method to RefDatabase for packed branch deletion Added ref deletion to RefUpdate jgit: Added branch deletion to jgit command .../src/org/spearce/jgit/pgm/Branch.java | 57 ++++++- .../src/org/spearce/jgit/lib/Constants.java | 9 + .../src/org/spearce/jgit/lib/RefDatabase.java | 41 ++++-- .../src/org/spearce/jgit/lib/RefLogWriter.java | 2 +- .../src/org/spearce/jgit/lib/RefUpdate.java | 106 ++++++++---- .../src/org/spearce/jgit/lib/RefWriter.java | 175 ++++++++++++++++++++ .../src/org/spearce/jgit/lib/Repository.java | 2 +- .../spearce/jgit/transport/TransportAmazonS3.java | 10 +- .../org/spearce/jgit/transport/TransportSftp.java | 6 +- .../spearce/jgit/transport/WalkPushConnection.java | 18 ++- .../jgit/transport/WalkRemoteObjectDatabase.java | 110 +----------- 11 files changed, 374 insertions(+), 162 deletions(-) create mode 100644 org.spearce.jgit/src/org/spearce/jgit/lib/RefWriter.java -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html