Package org.eclipse.jgit.transport

Examples of org.eclipse.jgit.transport.BundleWriter


      final int cnt = index.getEntryCount();
      log("%d entries added", cnt);
      final String msg = "snapshot";
      final RevCommit head = git.commit().setMessage(msg).call();

      final BundleWriter bw = new BundleWriter(git.getRepository());
      bw.include(sanitizeHeadRef(bundleRef), head);

      final FileOutputStream out = new FileOutputStream(bundle);
      try {
        bw.writeBundle(createProgressMonitor(), out);
      } finally {
        out.close();
      }

      return head.getId().getName();
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.BundleWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.