title: SharpSVN commit changes to file using .net
body: <p>I am a little bit confused looking at some of these SharpSVN tutorials.  How can add and then commit changes to files using SharpSVN?  </p>
  
  <p>I have a couple of code samples that I have found perusing around the net...</p>
  
  <pre><code>public bool Add(string path, string direccionLocal)
      {
          using (SvnClient client = new SvnClient())
          {
              SvnAddArgs args = new SvnAddArgs();
              args.Depth = SvnDepth.Infinity;
              //Console.Out.WriteLine(path);
              args.Force = true;
              OutPutWindow.Items.Add(path);
              args.AddParents = true;
              try
              {
                  return client.Add(path, args);
              }
              catch (Exception ex)
              {
                  return false;
              }
          }
      }
  </code></pre>
  
  <p>And for Commit...</p>
  
  <pre><code>public bool Commit(string path, string message)
      {
          using (SvnClient client = new SvnClient())
          {
              SvnCommitArgs args = new SvnCommitArgs();
  
              args.LogMessage = message;
              args.ThrowOnError = true;
              args.ThrowOnCancel = true;
  
              try
              {
                  return client.Commit(path, args);
              }
              catch (Exception e)
              {
                  if (e.InnerException != null)
                  {
                      throw new Exception(e.InnerException.Message, e);
                  }
  
                  throw e;
              }
          }
      }
  </code></pre>
  
  <p>when I call client.add, what precisely am I doing?  Pretty confused here?Is there any documentation I can look at to see precisely what I am doing here or what parameters I should use?
  Thanks.</p>