Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] getRefDatabase

I have inserted those two methods on the Repository.java class.
[code]
/**
* @return mutable map of all heads; key is short head name and value of the
*         entry contains the ref with the full head name
*/
public Map<String, Ref> getHeads() {
try {
return getRefDatabase().getRefs(Constants.R_HEADS);
} catch (IOException e) {
return new HashMap<String, Ref>();
}
}

/**
* @return mutable map of all remotes; key is short remote name and value of
*         the entry contains the ref with the full remote name
*/
public Map<String, Ref> getRemotes() {
try {
return getRefDatabase().getRefs(Constants.R_REMOTES);
} catch (IOException e) {
return new HashMap<String, Ref>();
}
}
[/code]

How can i retrieve the Locals Refs?

Best regards,
Stefanos Antaris

Back to the top