From ae810f0c3e0eb17c9cae74e54dd01ab6ff71886e Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 15 Jun 2014 17:40:30 +0200 Subject: [PATCH] Move documentation comments to header file Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 8 -------- src/Git/Git.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 98663e0e7..39773280e 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1283,10 +1283,6 @@ int CGit::GetTagList(STRING_VECTOR &list) } } -/** -Use this method only if m_IsUseLibGit2 is used for fallbacks. -If you directly use libgit2 methods, use GetLibGit2LastErr instead. -*/ CString CGit::GetGitLastErr(const CString& msg) { if (this->m_IsUseLibGit2) @@ -1388,10 +1384,6 @@ bool CGit::IsBranchTagNameUnique(const CString& name) return true; } -/* -Checks if a branch or tag with the given name exists -isBranch is true -> branch, tag otherwise -*/ bool CGit::BranchTagExists(const CString& name, bool isBranch /*= true*/) { if (m_IsUseLibGit2) diff --git a/src/Git/Git.h b/src/Git/Git.h index ebc70489b..8db151feb 100644 --- a/src/Git/Git.h +++ b/src/Git/Git.h @@ -179,6 +179,10 @@ public: static int m_LogEncode; static bool IsBranchNameValid(const CString& branchname); bool IsBranchTagNameUnique(const CString& name); + /** + * Checks if a branch or tag with the given name exists + *isBranch is true -> branch, tag otherwise + */ bool BranchTagExists(const CString& name, bool isBranch = true); unsigned int Hash2int(const CGitHash &hash); @@ -228,6 +232,10 @@ public: int Revert(const CString& commit, const CTGitPathList &list, bool keep=true); int Revert(const CString& commit, const CTGitPath &path); int DeleteRef(const CString& reference); + /** + Use this method only if m_IsUseLibGit2 is used for fallbacks. + If you directly use libgit2 methods, use GetLibGit2LastErr instead. + */ CString GetGitLastErr(const CString& msg); CString GetGitLastErr(const CString& msg, LIBGIT2_CMD cmd); static CString GetLibGit2LastErr(); -- 2.11.4.GIT