Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] getHeads feature

Sorry for my late response but i had to catch up a deadline for one of my university's project.
What have i realized on the bug 323180 is that you do not want to use the getRefDatabase() while trying to get the Heads, Remotes and Locals.This is why i have implemented the appropriate methods on the RefUpdate.

Should i implement the methods on the Repository class?It is quite easy to me as i do not have to change any other code instead of implementing the methods.Or should i?

I am sorry for making so many questions but i really want to join on JGit development and i try to cope with so many code as soon as possible.

Best regards,
Stefanos Antaris

On Thu, 2011-03-17 at 08:58 -0700, Shawn Pearce wrote:
On Thu, Mar 17, 2011 at 02:55, Stefanos Antaris <santaris@xxxxxxxxxxx> wrote:
> Another question.I am implementing the apropriate methods in RefUpdate
> class.

What are you putting into RefUpdate?

> What should the methods return?The Ref, the Map of Refs or String?

If you meant Repository class and are doing something like this:

  public class Repository {
  ....

    public Map<String, Ref> getHeads()
  }


You should return a Map where the refs/heads/ prefix has been removed
from the key. So the reference for refs/heads/master is in key
"master".



Back to the top