cmCTestGIT.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmCTestGIT_h
  14. #define cmCTestGIT_h
  15. #include "cmCTestGlobalVC.h"
  16. /** \class cmCTestGIT
  17. * \brief Interaction with git command-line tool
  18. *
  19. */
  20. class cmCTestGIT: public cmCTestGlobalVC
  21. {
  22. public:
  23. /** Construct with a CTest instance and update log stream. */
  24. cmCTestGIT(cmCTest* ctest, std::ostream& log);
  25. virtual ~cmCTestGIT();
  26. private:
  27. std::string GetWorkingRevision();
  28. virtual void NoteOldRevision();
  29. virtual void NoteNewRevision();
  30. virtual bool UpdateImpl();
  31. void LoadRevisions();
  32. void LoadModifications();
  33. // Parsing helper classes.
  34. class OneLineParser;
  35. class DiffParser;
  36. class CommitParser;
  37. friend class OneLineParser;
  38. friend class DiffParser;
  39. friend class CommitParser;
  40. };
  41. #endif