]> source.dussan.org Git - jgit.git/commit
ReceiveCommand.filter: Accept Iterable 12/61712/1
authorShawn Pearce <spearce@spearce.org>
Tue, 1 Dec 2015 22:20:44 +0000 (14:20 -0800)
committerShawn Pearce <spearce@spearce.org>
Wed, 2 Dec 2015 03:59:03 +0000 (19:59 -0800)
commitf89f30ffcdfbd6d18e674f9d5e565bd6a21ee938
tree474b9da8b9914cd4fd7a271e9c0ca67174157606
parent8078021e8f960f1673449790425235f2c1edf63a
ReceiveCommand.filter: Accept Iterable

PreReceiveHook is given a Collection<ReceiveCommand> and it can be
very useful here to call ReceiveCommand.filter(cmds, NOT_ATTEMPTED).

Overload filter to accept both Iterable and List.
Keep backwards binary compatibility for List by upcasting to Iterable.

Change-Id: Ib1341876c703670945ef209edc8259715ee86c26
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java