Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] EGit PDE - help with EGit/JGit

On Wed, Oct 27, 2010 at 12:54 PM, Paul Webster
<pwebster@xxxxxxxxxxxxxxxxxxx> wrote:
> re:
> 1) find the git repo for an IProject

RepositoryMapping rm = RepositoryMapping.getMapping(resource);

That should work.

> 2) git tag $BUILD_TAG :tag the repo with the tag
Git git = new Git(repo)
TagCommand command = git.tag();

> 3) git rev-list HEAD -- <project> :to get the last commit that effected that
> project

Git git = new Git(repo)
LogCommand command = git.log();

> 4) git tag --contains $LAST_COMMIT :to get the list of tags that contain the
> commit

Not sure how to do this one yet using the API. May have to drop down
to using RevWalk's

> 5) git log  ${LATEST_SUBMISSION}..${BUILD_TAG} :so I can scan for bug numbers
> for the build notes.

Git git = new Git(repo)
LogCommand command = git.log();
command.addRange(since, until).


Chris Aniszczyk
+1 860 839 2465

Back to the top