示例#1
0
 public override bool Equals(object obj)
 {
     if (!(obj is NGit.Transport.RefSpec))
     {
         return(false);
     }
     NGit.Transport.RefSpec b = (NGit.Transport.RefSpec)obj;
     if (IsForceUpdate() != b.IsForceUpdate())
     {
         return(false);
     }
     if (IsWildcard() != b.IsWildcard())
     {
         return(false);
     }
     if (!Eq(GetSource(), b.GetSource()))
     {
         return(false);
     }
     if (!Eq(GetDestination(), b.GetDestination()))
     {
         return(false);
     }
     return(true);
 }
示例#2
0
 private RefSpec(NGit.Transport.RefSpec p)
 {
     force    = p.IsForceUpdate();
     wildcard = p.IsWildcard();
     srcName  = p.GetSource();
     dstName  = p.GetDestination();
 }