Skip to main content

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

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


Back to the top