Add another RemoteRefUpdate constructor, useful for 2-stage push
commit9e496c8060d6dfce0ee68b545d5d8255716dceac
authorMarek Zawirski <marek.zawirski@gmail.com>
Sun, 17 Aug 2008 20:43:53 +0000 (17 22:43 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 21 Aug 2008 21:31:54 +0000 (21 23:31 +0200)
treedd38c43790320ddccee3cce4a7a862d097474565
parent5fb5bd7ab0318c4f2e58d1d994769056a1121725
Add another RemoteRefUpdate constructor, useful for 2-stage push

New constructor base on existing RemoteRefUpdate instance, providing
deep copy of object, but allowing change of expectedOldObjectId.

It may be useful for copying ref updates during one-to-many push or
2-stage push, with first 1st step being dry run, 2nd being actual push.

Signed-off-by: Marek Zawirski <marek.zawirski@gmail.com>
[Ed. amended follow up patch]
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/RemoteRefUpdate.java