Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364565

Summary: Use LogCommand.all() when listing all refs in git log
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 0.3   
Target Milestone: 0.4 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2011-11-23 05:35:29 EST
In GitCommitHandlerV1.java:

// workaround for git log --all - see bug 353310
List<Ref> branches = git.branchList().setListMode(ListMode.ALL).call();
for (Ref branch : branches) {
	lc.add(branch.getObjectId());
}

can be now replaced with:

lc.all();
Comment 1 Tomasz Zarna CLA 2011-11-25 04:58:55 EST
Fixed with 3429c1443124b5731ee2302c02786119e22e7df2.