public void setDetectRenames(boolean on) {if (on && renameDetector == null) {assertHaveReader();renameDetector = new RenameDetector(reader, diffCfg);} else if (!on)renameDetector = null;}

public virtual void SetDetectRenames(bool on){if (on && renameDetector == null){AssertHaveRepository();renameDetector = new RenameDetector(db);}else{if (!on){renameDetector = null;}}}
