Changeset 1531


Ignore:
Timestamp:
Oct 4, 2012, 3:08:48 PM (9 years ago)
Author:
Peter Johansson
Message:

add option '--update'

Location:
trunk/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigestParameter.cc

    r1515 r1531  
    6262      revisions_(cmd_, "revisions",
    6363                 "use revision number as time scale instead of dates [dates]"),
    64       target_(cmd_, "t,target", "output directory [.]")
     64      target_(cmd_, "t,target", "output directory [.]"),
     65      update_(cmd_, "u,update",
     66              "write output only when NODE has changed since last write")
    6567  {
    6668  }
     
    169171  }
    170172
     173
     174  bool svndigestParameter::update(void) const
     175  {
     176    return update_.present();
     177  }
     178
    171179}} // of namespace svndigest and namespace theplu
  • trunk/bin/svndigestParameter.h

    r1515 r1531  
    5757    /// @return absolute path to root directory
    5858    std::string targetdir(void) const;
     59    bool update(void) const;
    5960
    6061  private:
     
    6970    yat::utility::OptionSwitch revisions_;
    7071    yat::utility::OptionArg<std::string> target_;
     72    yat::utility::OptionSwitch update_;
    7173  };
    7274
Note: See TracChangeset for help on using the changeset viewer.