public class SMAGit extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SMAGit.Mode |
Constructor and Description |
---|
SMAGit(String pathToWorkspace,
String curCommit,
String diffAgainst,
SMAGit.Mode smaMode)
Creates an SMAGit instance
|
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
getAllMetadata()
Replicates ls-tree for the current commit.
|
byte[] |
getBlob(String repoItem,
String commit)
Returns the blob information for the file at the specified path and commit
|
String |
getCurCommit() |
Map<String,byte[]> |
getDeletedMetadata()
Returns all of the items that were deleted in the current commit.
|
Map<String,byte[]> |
getNewMetadata()
Returns all of the items that were added in the current commit.
|
Map<String,byte[]> |
getOriginalMetadata()
Returns all of the modified (old paths) changes in the current commit.
|
String |
getPrevCommit() |
org.eclipse.jgit.api.Git |
getRepo() |
Map<String,byte[]> |
getUpdatedMetadata()
Returns all of the updated changes in the current commit.
|
boolean |
updatePackageXML(String workspace,
String userName,
String userEmail,
SMAPackage manifest)
Creates an updated package.xml file and commits it to the repository
|
public Map<String,byte[]> getNewMetadata() throws Exception
IOException
Exception
public Map<String,byte[]> getDeletedMetadata() throws Exception
Exception
public Map<String,byte[]> getUpdatedMetadata() throws Exception
IOException
Exception
public Map<String,byte[]> getOriginalMetadata() throws Exception
Exception
public byte[] getBlob(String repoItem, String commit) throws Exception
repoItem
- commit
- Exception
public Map<String,byte[]> getAllMetadata() throws Exception
IOException
Exception
public boolean updatePackageXML(String workspace, String userName, String userEmail, SMAPackage manifest) throws Exception
workspace
- The workspace.userName
- The user name of the committer.userEmail
- The email of the committer.manifest
- The SMAPackage representation of a package manifestException
public org.eclipse.jgit.api.Git getRepo()
public String getPrevCommit()
public String getCurCommit()
Copyright © 2004-2016. All Rights Reserved.