Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364565 - Use LogCommand.all() when listing all refs in git log
Summary: Use LogCommand.all() when listing all refs in git log
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 0.4 M1   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 05:35 EST by Tomasz Zarna CLA
Modified: 2011-11-25 04:58 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.