Package org.eclipse.orion.server.git.jobs

Examples of org.eclipse.orion.server.git.jobs.DiffCommand.call()


  private boolean handleGetDiffs(HttpServletRequest request, HttpServletResponse response, Repository db, String scope, String pattern) throws Exception {
    DiffCommand command = getDiff(request, response, db, scope, pattern, NullOutputStream.INSTANCE);
    if (command == null)
      return true;

    List<DiffEntry> l = command.call();
    JSONArray diffs = new JSONArray();
    URI diffLocation = getURI(request);
    if (pattern != null) {
      IPath patternPath = new Path(pattern);
      IPath diffPath = new Path(diffLocation.getPath());
View Full Code Here


  private boolean handleGetDiff(HttpServletRequest request, HttpServletResponse response, Repository db, String scope, String pattern, OutputStream out)
      throws Exception {
    DiffCommand command = getDiff(request, response, db, scope, pattern, new BufferedOutputStream(out));
    if (command != null)
      command.call();
    return true;
  }

  private DiffCommand getDiff(HttpServletRequest request, HttpServletResponse response, Repository db, String scope, String pattern, OutputStream out)
      throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.