text: public virtual NGit.Api.PushCommand Add(string nameOrSpec){if (0 <= nameOrSpec.IndexOf(':')){refSpecs.AddItem(new RefSpec(nameOrSpec));}else{Ref src;try{src = repo.GetRef(nameOrSpec);}catch (IOException e){throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfPushCommand, e);}if (src != null){Add(src);}}return this;}