Exemple #1
0
 /**
  * Add a commit if it does not have a flag set yet, then set the flag.
  * <para />
  * This method permits the application to test if the commit has the given
  * flag; if it does not already have the flag than the commit is added to
  * the queue and the flag is set. This later will prevent the commit from
  * being added twice.
  * 
  * @param c
  *            commit to add.
  * @param queueControl
  *            flag that controls admission to the queue.
  */
 public void add(RevCommit c, RevFlag queueControl)
 {
     if (!c.has(queueControl))
     {
         c.add(queueControl);
         add(c);
     }
 }
 public override bool include(GitSharp.Core.RevWalk.RevWalk walker, RevCommit cmit)
 {
     bool remoteKnowsIsCommon = cmit.has(_common);
     if (cmit.has(_advertised))
     {
         cmit.add(_common);
     }
     return !remoteKnowsIsCommon;
 }
 private void PushLocalCommit(RevCommit p)
 {
     if (p.has(LOCALLY_SEEN)) return;
     _revWalk.parseHeaders(p);
     p.add(LOCALLY_SEEN);
     p.add(COMPLETE);
     p.carry(COMPLETE);
     p.DisposeBody();
     _localCommitQueue.add(p);
 }