Hi,
I am developing a bitbucket plugin and for that I need to get the last committed date for a given repository by a given user. Is there anyway we can do that without using REST API?
I think we might be able to use ScmCommandFactory. But I could not find a good example on how to use it. I would really appreciate if someone could help me in this.
Thanks
Hi Manushi you can do this by using the
GitLogBuilder
See below for an example.
Page<Commit> page = builderFactory.builder(repository).log()
.order(GitRevListOrder.DATE)
.committer("displayName", "email@example.com")
.build(outputHandler)
.call();
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.