Package com.gitblit.models

Examples of com.gitblit.models.RefLogEntry.addCommit()


                              tags.put(dateStr, new DailyLogEntry(repositoryName, tagDate, tagUser));
                                }
                                RefLogEntry tagEntry = tags.get(dateStr);
                                tagEntry.updateRef(ref.getName(), ReceiveCommand.Type.CREATE);
                                RepositoryCommit rc = repoCommit.clone(ref.getName());
                                tagEntry.addCommit(rc);
                            } else if (ref.getName().startsWith(Constants.R_PULL)) {
                                // treat pull requests as special events in the log
                                if (!pulls.containsKey(dateStr)) {
                              UserModel commitUser = newUserModelFrom(ref.getAuthorIdent());
                              Date commitDate = commit.getAuthorIdent().getWhen();
View Full Code Here


                              pulls.put(dateStr, new DailyLogEntry(repositoryName, commitDate, commitUser));
                                }
                                RefLogEntry pullEntry = pulls.get(dateStr);
                                pullEntry.updateRef(ref.getName(), ReceiveCommand.Type.CREATE);
                                RepositoryCommit rc = repoCommit.clone(ref.getName());
                                pullEntry.addCommit(rc);
                            }
                        }
                    }
                }
            }
View Full Code Here

            continue;
          }
          try {
            List<RevCommit> pushedCommits = JGitUtils.getRevLog(repository, oldId, newId);
            for (RevCommit pushedCommit : pushedCommits) {
              RepositoryCommit repoCommit = log.addCommit(change.path, pushedCommit);
              if (repoCommit != null) {
                repoCommit.setRefs(allRefs.get(pushedCommit.getId()));
              }
            }
          } catch (Exception e) {
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.