public class UserCommitActivity extends Object implements Serializable
This class provides the IDs and times for all commits attributed.
| Modifier and Type | Field and Description |
|---|---|
static int |
GROWTH
Default growth percentage of expected commits
|
static int |
SIZE
Default size of expected commits
|
| Constructor and Description |
|---|
UserCommitActivity(String name,
String email)
Create user activity for given name and e-mail address
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Get number of commits
|
long |
getEarliest()
Get time of earliest commit
|
String |
getEmail()
Get e-mail address of user
|
org.eclipse.jgit.lib.ObjectId |
getFirst()
Get id of first commit
|
org.eclipse.jgit.lib.ObjectId[] |
getIds()
Get commits as array of object ids
|
org.eclipse.jgit.lib.ObjectId |
getLast()
Get id of latest commit
|
long |
getLatest()
Get time of latest commit
|
boolean[] |
getMerges()
Get merges as array of booleans
|
String |
getName()
Get name of user
|
byte[][] |
getRawIds()
Get raw commits as array of byte arrays
|
long[] |
getTimes()
Get commit times
|
UserCommitActivity |
include(org.eclipse.jgit.revwalk.RevCommit commit,
org.eclipse.jgit.lib.PersonIdent user)
Include given commit in activity
|
public static final int SIZE
public static final int GROWTH
public String getName()
public String getEmail()
public UserCommitActivity include(org.eclipse.jgit.revwalk.RevCommit commit, org.eclipse.jgit.lib.PersonIdent user)
commit - must be non-nulluser - must be non-nullpublic long[] getTimes()
public byte[][] getRawIds()
public org.eclipse.jgit.lib.ObjectId[] getIds()
public boolean[] getMerges()
public int getCount()
public org.eclipse.jgit.lib.ObjectId getFirst()
public org.eclipse.jgit.lib.ObjectId getLast()
public long getEarliest()
public long getLatest()
Copyright © 2011-2017. All Rights Reserved.