111 gitRepo(
const std::string & d);
116 void dir(
const std::string & d);
Interrogate the current state of a git repository.
int getGitName()
Get the name of the git repo.
std::string gitDir()
Get the current repo's .git directory.
std::set< std::string > m_renamedFiles
Files which git lists as renamed-from.
std::string m_branch
The current branch.
std::set< std::string > m_renamedFiles2
Files which git lists as renamed-to.
bool isNotCommitted(const std::string &file)
Check whether a file is listed as not committed.
std::string m_dir
The directory of the git repository.
int getGitHash()
Get the name of the current commit hash.
std::string branch()
Get the current branch.
std::string name()
Get the repo's name.
std::string m_name
The repo name.
std::set< std::string > m_untrackedFiles
Files which git lists as untracked.
std::set< std::string > m_deletedFiles
Files which git lists as deleted.
std::set< std::string > m_modifiedFiles
Files which git lists as modified.
std::string dir()
Get the current directory.
std::string m_hash
The complete commit hash.
bool modified()
Get whether the repo is modified.
int getGitModified()
Get the modification status of the repo.
bool m_modified
The modification status, true or false.
int getGitFileState()
Get the list of modified files, and the branch name.
std::string hash()
Get the current commit hash.