JX Application Framework
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
jVCSUtil.h File Reference
#include "JError.h"
Include dependency graph for jVCSUtil.h:
This graph shows which files directly or indirectly include this file:

Classes

class  JUnsupportedVCS
 

Enumerations

enum  JVCSType {
  kJUnknownVCSType = 0 ,
  kJSCCSType ,
  kJCVSType ,
  kJSVNType ,
  kJGitType
}
 

Functions

bool JIsVCSDirectory (const JString &name)
 
JSize JGetVCSDirectoryNames (const JUtf8Byte ***dirNames)
 
JVCSType JGetVCSType (const JString &path)
 
bool JIsManagedByVCS (const JString &fullName, JVCSType *returnType=nullptr)
 
void JEditVCS (const JString &fullName)
 
JError JRenameVCS (const JString &oldFullName, const JString &newFullName)
 
JError JRemoveVCS (const JString &fullName, const bool sync=true, JProcess **p=nullptr)
 
bool JGetVCSRepositoryPath (const JString &path, JString *repoPath)
 
bool JGetSVNEntryType (const JString &url, JString *type, JString *error)
 
void JUpdateCVSIgnore (const JString &ignoreFullName)
 
const JStringJGetGitDirectoryName ()
 
bool JSearchGitRoot (const JString &path, JString *gitRoot)
 

Enumeration Type Documentation

◆ JVCSType

enum JVCSType
Enumerator
kJUnknownVCSType 
kJSCCSType 
kJCVSType 
kJSVNType 
kJGitType 

Function Documentation

◆ JEditVCS()

void JEditVCS ( const JString fullName)

◆ JGetGitDirectoryName()

const JString & JGetGitDirectoryName ( )

◆ JGetSVNEntryType()

bool JGetSVNEntryType ( const JString url,
JString type,
JString error 
)
This function makes a synchronous call to the central repository!
It is only useful for command line interaction.

If the process succeeds, *type is the entry's "kind": file or dir

If the process fails, the error output is returned in *error.

◆ JGetVCSDirectoryNames()

JSize JGetVCSDirectoryNames ( const JUtf8Byte ***  dirNames)

◆ JGetVCSRepositoryPath()

bool JGetVCSRepositoryPath ( const JString path,
JString repoPath 
)

◆ JGetVCSType()

JVCSType JGetVCSType ( const JString path)

◆ JIsManagedByVCS()

bool JIsManagedByVCS ( const JString fullName,
JVCSType returnType = nullptr 
)

◆ JIsVCSDirectory()

bool JIsVCSDirectory ( const JString name)

◆ JRemoveVCS()

JError JRemoveVCS ( const JString fullName,
const bool  sync,
JProcess **  returnP 
)

if !sync and p != nullptr, p may return a process.

◆ JRenameVCS()

JError JRenameVCS ( const JString oldFullName,
const JString newFullName 
)

◆ JSearchGitRoot()

bool JSearchGitRoot ( const JString path,
JString gitRoot 
)

Search directory tree up to root.

◆ JUpdateCVSIgnore()

void JUpdateCVSIgnore ( const JString ignoreFullName)