Пример #1
0
 public void MergeFrom(CommitWire other)
 {
     if (other == null)
     {
         return;
     }
     parents_.Add(other.parents_);
     if (other.treeId_ != null)
     {
         if (treeId_ == null)
         {
             treeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         TreeId.MergeFrom(other.TreeId);
     }
     if (other.author_ != null)
     {
         if (author_ == null)
         {
             author_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Author.MergeFrom(other.Author);
     }
     if (other.committer_ != null)
     {
         if (committer_ == null)
         {
             committer_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Committer.MergeFrom(other.Committer);
     }
     if (other.message_ != null)
     {
         if (message_ == null)
         {
             message_ = new global::Google.Protobuf.WellKnownTypes.StringValue();
         }
         Message.MergeFrom(other.Message);
     }
 }
Пример #2
0
 public void MergeFrom(CommitWire other)
 {
     if (other == null)
     {
         return;
     }
     parents_.Add(other.parents_);
     if (other.treeId_ != null)
     {
         if (treeId_ == null)
         {
             treeId_ = new global::SourceCode.Chasm.IO.Proto.Wire.Sha1Wire();
         }
         TreeId.MergeFrom(other.TreeId);
     }
     if (other.author_ != null)
     {
         if (author_ == null)
         {
             author_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Author.MergeFrom(other.Author);
     }
     if (other.committer_ != null)
     {
         if (committer_ == null)
         {
             committer_ = new global::SourceCode.Chasm.IO.Proto.Wire.AuditWire();
         }
         Committer.MergeFrom(other.Committer);
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
 }