JX Application Framework
Loading...
Searching...
No Matches
Functions | Variables
jVCSUtil.cpp File Reference
#include "jVCSUtil.h"
#include "JRegex.h"
#include "JSimpleProcess.h"
#include "jFileUtil.h"
#include "jStreamUtil.h"
#include "jFStreamUtil.h"
#include "jXMLUtil.h"
#include <libxml/parser.h>
#include "jGlobals.h"
#include "jAssert.h"
Include dependency graph for jVCSUtil.cpp:

Functions

bool JIsVCSDirectory (const JString &name)
 
JSize JGetVCSDirectoryNames (const JUtf8Byte ***dirNames)
 
JVCSType JGetVCSType (const JString &path)
 
bool JIsManagedByVCS (const JString &fullName, JVCSType *returnType)
 
void JEditVCS (const JString &fullName)
 
JError JRenameVCS (const JString &oldFullName, const JString &newFullName)
 
JError JRemoveVCS (const JString &fullName, const bool sync, JProcess **returnP)
 
bool JGetVCSRepositoryPath (const JString &origPath, 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)
 

Variables

const JSize kDirCount = sizeof(kDirName) / sizeof(const JUtf8Byte*)
 
const JUtf8BytekJUnsupportedVCS = "JUnsupportedVCS"
 

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 origPath,
JString repoPath 
)

◆ JGetVCSType()

JVCSType JGetVCSType ( const JString path)

◆ JIsManagedByVCS()

bool JIsManagedByVCS ( const JString fullName,
JVCSType returnType 
)

◆ 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)

Variable Documentation

◆ kDirCount

const JSize kDirCount = sizeof(kDirName) / sizeof(const JUtf8Byte*)

◆ kJUnsupportedVCS

const JUtf8Byte* kJUnsupportedVCS = "JUnsupportedVCS"