[
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: http://dev.eclipse.org/mhonarc/lists/egit-dev/msg01597.html
> 1) find the git repo for an IProject
RepositoryMapping rm = RepositoryMapping.getMapping(resource);
rm.getRepository()
That should work.
> 2) git tag $BUILD_TAG :tag the repo with the tag
Git git = new Git(repo)
TagCommand command = git.tag();
tag.setName($BUILD_TAG)
tag.call();
> 3) git rev-list HEAD -- <project> :to get the last commit that effected that
> project
Git git = new Git(repo)
LogCommand command = git.log();
command.call()
> 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).
command.call()
--
Cheers,
Chris Aniszczyk
http://aniszczyk.org
+1 860 839 2465