Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.PersonIdent


      tz = parseTimeZoneOffset(raw, ptrout.value);
    } else {
      when = 0;
      tz = 0;
    }
    return new PersonIdent(name, email, when * 1000L, tz);
  }
View Full Code Here


    long timeof(RevObject o) {
      if (o instanceof RevCommit)
        return ((RevCommit) o).getCommitTime();
      if (o instanceof RevTag) {
        RevTag tag = (RevTag) o;
        PersonIdent who = tag.getTaggerIdent();
        return who != null ? who.getWhen().getTime() : 0;
      }
      return 0;
    }
View Full Code Here

      return Integer.MAX_VALUE;
    }

    @Override
    PersonIdent getAuthor() {
      return new PersonIdent(description, null);
    }
View Full Code Here

    return r.toString();
  }

  private void loadFrom(BlameGenerator gen) {
    RevCommit srcCommit = gen.getSourceCommit();
    PersonIdent srcAuthor = gen.getSourceAuthor();
    PersonIdent srcCommitter = gen.getSourceCommitter();
    String srcPath = gen.getSourcePath();
    int srcLine = gen.getSourceStart();
    int resLine = gen.getResultStart();
    int resEnd = gen.getResultEnd();
View Full Code Here

        this.speakeasyService = speakeasyService;
        this.gitRepositoryManager = gitRepositoryManager;
        this.rp = new ReceivePack(repository);
        final String email = user.getEmail();
        final String name = user.getFullName();
        rp.setRefLogIdent(new PersonIdent(name, email));

        rp.setPreReceiveHook(this);
        rp.setPostReceiveHook(this);
    }
View Full Code Here

   *             if the tag is signed (not supported yet)
   */
  private void processOptions(RepositoryState state)
      throws InvalidTagNameException {
    if (tagger == null)
      tagger = new PersonIdent(repo);
    if (name == null || !Repository.isValidRefName(Constants.R_TAGS + name))
      throw new InvalidTagNameException(MessageFormat.format(JGitText
          .get().tagNameInvalid, name == null ? "<null>" : name));
    if (signed)
      throw new UnsupportedOperationException(
View Full Code Here

   * @throws NoMessageException
   *             if the commit message has not been specified
   */
  private void processOptions(RepositoryState state) throws NoMessageException {
    if (committer == null)
      committer = new PersonIdent(repo);
    if (author == null && !amend)
      author = committer;

    // when doing a merge commit parse MERGE_HEAD and MERGE_MSG files
    if (state == RepositoryState.MERGING_RESOLVED) {
View Full Code Here

   *            the email of the committer used for the {@code commit}
   * @return {@code this}
   */
  public CommitCommand setCommitter(String name, String email) {
    checkCallable();
    return setCommitter(new PersonIdent(name, email));
  }
View Full Code Here

   *            the email of the author used for the {@code commit}
   * @return {@code this}
   */
  public CommitCommand setAuthor(String name, String email) {
    checkCallable();
    return setAuthor(new PersonIdent(name, email));
  }
View Full Code Here

    }
    return parseAuthor(raw);
  }

  private RebaseResult stop(RevCommit commitToPick) throws IOException {
    PersonIdent author = commitToPick.getAuthorIdent();
    String authorScript = toAuthorScript(author);
    createFile(rebaseDir, AUTHOR_SCRIPT, authorScript);
    createFile(rebaseDir, MESSAGE, commitToPick.getFullMessage());
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    DiffFormatter df = new DiffFormatter(bos);
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.PersonIdent

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.