final String s = parseRefs(refs, currentRefs, locals, remotes, tags);
gitCommit = new GitCommit(AbstractHash.create(record.getShortHash()), new SHAHash(record.getHash()), record.getAuthorName(),
record.getCommitterName(),
- record.getDate(), record.getFullMessage(),
+ record.getDate(), record.getSubject(), record.getFullMessage(),
new HashSet<String>(Arrays.asList(record.getParentsShortHashes())), record.getFilePaths(root),
record.getAuthorEmail(),
record.getCommitterEmail(), tags, locals, remotes,
private final SHAHash myHash;
private final String myAuthor;
private final String myCommitter;
+ private final String mySubject;
private final String myDescription;
private final Date myDate;
final String author,
final String committer,
final Date date,
+ final String subject,
final String description,
final Set<String> parentsHashes,
final List<FilePath> pathsList,
myAuthor = author;
myCommitter = committer;
myDate = date;
+ mySubject = subject;
myDescription = description;
myHash = hash;
myParentsHashes = parentsHashes;
}
});
}
+
+ public String getSubject() {
+ return mySubject;
+ }
}
private GitCommit createNotLoadedCommit(AbstractHash shortHash) {
final String notKnown = "Can not load";
- return new GitCommit(shortHash, SHAHash.emulate(shortHash), notKnown, notKnown, new Date(0),
+ return new GitCommit(shortHash, SHAHash.emulate(shortHash), notKnown, notKnown, new Date(0), notKnown,
"Can not load details", Collections.<String>emptySet(), Collections.<FilePath>emptyList(), notKnown,
notKnown, Collections.<String>emptyList(), Collections.<String>emptyList(), Collections.<String>emptyList(),
Collections.<Change>emptyList(), 0);