Package com.gitblit.models

Examples of com.gitblit.models.PathModel


    String format = app().settings().getString(Keys.web.datetimestampLongFormat,
        "EEEE, MMMM d, yyyy HH:mm Z");
    final DateFormat df = new SimpleDateFormat(format);
    df.setTimeZone(getTimeZone());

    PathModel pathModel = null;
    List<PathModel> paths = JGitUtils.getFilesInPath(getRepository(), StringUtils.getRootPath(blobPath), commit);
    for (PathModel path : paths) {
      if (path.path.equals(blobPath)) {
        pathModel = path;
        break;
View Full Code Here


        size = tw.getObjectReader().getObjectSize(objectId, Constants.OBJ_BLOB);
      }
    } catch (Throwable t) {
      error(t, null, "failed to retrieve blob size for " + tw.getPathString());
    }
    return new PathModel(name, tw.getPathString(), size, tw.getFileMode(0).getBits(),
        objectId.getName(), commit.getName());
  }
View Full Code Here

TOP

Related Classes of com.gitblit.models.PathModel

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.