cmake/Source/CTest/cmCTestGIT.h

59 lines
1.5 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc.
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmCTestGIT_h
#define cmCTestGIT_h
#include "cmCTestGlobalVC.h"
/** \class cmCTestGIT
* \brief Interaction with git command-line tool
*
*/
2016-07-09 11:21:54 +02:00
class cmCTestGIT : public cmCTestGlobalVC
2009-10-04 10:30:41 +03:00
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestGIT(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestGIT();
private:
2011-06-19 15:41:06 +03:00
unsigned int CurrentGitVersion;
unsigned int GetGitVersion();
2009-10-04 10:30:41 +03:00
std::string GetWorkingRevision();
virtual void NoteOldRevision();
virtual void NoteNewRevision();
virtual bool UpdateImpl();
2010-11-13 01:00:53 +02:00
std::string FindGitDir();
std::string FindTopDir();
2010-06-23 01:18:35 +03:00
bool UpdateByFetchAndReset();
bool UpdateByCustom(std::string const& custom);
bool UpdateInternal();
2009-10-04 10:30:41 +03:00
void LoadRevisions();
void LoadModifications();
2016-07-09 11:21:54 +02:00
// "public" needed by older Sun compilers
public:
2009-10-04 10:30:41 +03:00
// Parsing helper classes.
class OneLineParser;
class DiffParser;
class CommitParser;
friend class OneLineParser;
friend class DiffParser;
friend class CommitParser;
};
#endif