Package com.gitblit.models

Examples of com.gitblit.models.AnnotatedLine


      private boolean showInitials = true;
      private String zeroId = ObjectId.zeroId().getName();

      @Override
      public void populateItem(final Item<AnnotatedLine> item) {
        final AnnotatedLine entry = item.getModelObject();

        // commit id and author
        if (!lastCommitId.equals(entry.commitId)) {
          lastCommitId = entry.commitId;
          if (zeroId.equals(entry.commitId)) {
View Full Code Here


      BlameResult blameResult = blameCommand.call();
      RawText rawText = blameResult.getResultContents();
      int length = rawText.size();
      for (int i = 0; i < length; i++) {
        RevCommit commit = blameResult.getSourceCommit(i);
        AnnotatedLine line = new AnnotatedLine(commit, i + 1, rawText.getString(i));
        lines.add(line);
      }
    } catch (Throwable t) {
      LOGGER.error(MessageFormat.format("failed to generate blame for {0} {1}!", blobPath, objectId), t);
    }
View Full Code Here

      private boolean showInitials = true;
      private String zeroId = ObjectId.zeroId().getName();

      @Override
      public void populateItem(final Item<AnnotatedLine> item) {
        final AnnotatedLine entry = item.getModelObject();

        // commit id and author
        if (!lastCommitId.equals(entry.commitId)) {
          lastCommitId = entry.commitId;
          if (zeroId.equals(entry.commitId)) {
View Full Code Here

TOP

Related Classes of com.gitblit.models.AnnotatedLine

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.