public void addTo(BatchRefUpdate bru){
  for (  ReceiveCommand cmd : commands.values()) {
    bru.addCommand(cmd);
  }
}

public void addTo ( BatchRefUpdate bru ) { for ( ReceiveCommand cmd : commands . values ( ) ) { bru . addCommand ( cmd ) ; } }
add commands from this instance to a native jgit batch update . < p > exactly one command per ref will be added to the update . the old sha - 1 will be the old sha - 1 of the first command added to this instance for that ref ; the new sha - 1 will be the new sha - 1 of the last command .
