Exemplo n.º 1
0
            private void InternalHidePush(IList <object> identifier, HidePushSignature hidePush)
            {
                IEnumerable <ObjectId> oids = repo.Committishes(identifier).TakeWhile(o => o != null);

                foreach (ObjectId actedOn in oids)
                {
                    hidePush(handle, actedOn);
                }
            }
Exemplo n.º 2
0
 /// <summary>
 /// Dereference the identifier to a commit. If the identifier is enumerable, dereference the first element.
 /// </summary>
 /// <param name="repo">The <see cref="Repository"/> to search</param>
 /// <param name="identifier">Committish to dereference</param>
 /// <returns>An <see cref="ObjectId"/> for a commit object.</returns>
 internal static ObjectId Committish(this Repository repo, object identifier)
 {
     return(repo.Committishes(identifier, true).First());
 }