Top Method Summary
Options Name Purpose
Consultingwerk.Studio.Git.GitBaseVersion GetBaseVersion (character) Returns the base version of a file
Consultingwerk.Studio.Git.GitCommitInfo GetCommitInfo (character, character, character) Returns the commit that last changed a file up to a revision
Consultingwerk.Studio.Git.GitFileStatus GetFileStatus (character) Returns the Git status of a file in the working tree
Consultingwerk.Studio.Git.GitWorkingTreeStateEnum ParseWorkingTreeState (character) Returns the working tree state from the output of git status --porcelain
CHARACTER RunGitCommand (character, character, character) Executes a git command

Top Property Summary
Options Name Purpose
CHARACTER BaseBranchName
CHARACTER FeatureBranchPrefix


Method Detail
Top

Consultingwerk.Studio.Git.GitBaseVersion GetBaseVersion (character)

Purpose: Returns the base version of a file
Notes: Returns ? when there is no base version: the file is not part
of a Git working tree, the current branch is not a feature
branch or the file did not exist when the feature branch was
opened

Parameters:
pcFileName CHARACTER
The name of the file
Returns Consultingwerk.Studio.Git.GitBaseVersion
The GitBaseVersion instance or ? when there is no base version
Top

Consultingwerk.Studio.Git.GitCommitInfo GetCommitInfo (character, character, character)

Purpose: Returns the commit that last changed a file up to a revision
Notes: Returns ? when the file was never committed up to the revision

Parameters:
pcFolder CHARACTER
The folder of the file, the working directory of git
pcRevision CHARACTER
The revision (commit ID, branch name, HEAD)
pcShortFileName CHARACTER
The name of the file without the folder
Returns Consultingwerk.Studio.Git.GitCommitInfo
The GitCommitInfo instance or ?
Top

Consultingwerk.Studio.Git.GitFileStatus GetFileStatus (character)

Purpose: Returns the Git status of a file in the working tree
Notes: The commit that last changed the file in the current branch
and whether the file on disk is identical to that version,
modified or staged. Returns ? when the file is not part of a
Git working tree

Parameters:
pcFileName CHARACTER
The name of the file
Returns Consultingwerk.Studio.Git.GitFileStatus
The GitFileStatus instance or ? when the file is not part of a Git working tree
Top

Consultingwerk.Studio.Git.GitWorkingTreeStateEnum ParseWorkingTreeState (character)

Purpose: Returns the working tree state from the output of
git status --porcelain
Notes: The first status character describes the index (stage), the
second the working tree. A blank means unchanged, ?? marks an
untracked file

Parameters:
pcStatus CHARACTER
The status line of the file, the empty string when the file is unmodified
Returns Consultingwerk.Studio.Git.GitWorkingTreeStateEnum
The GitWorkingTreeStateEnum value
Top

CHARACTER RunGitCommand (character, character, character)

Purpose: Executes a git command
Notes: Returns ? when the command cannot be executed or returns a
non-zero exit code, the reason is written to the client log
file. When an output file name is passed, the standard output
is written to that file unchanged, otherwise the last non-empty
line of the standard output is returned

Parameters:
pcWorkingDirectory CHARACTER
The working directory of the git process
pcArguments CHARACTER
The arguments to pass to the git executable
pcOutputFileName CHARACTER
The name of the file to write the standard output to, ? to return the last line instead
Returns CHARACTER
The last non-empty line of the standard output, the empty string when there is none or ? when the command failed


Property Detail
Top

CHARACTER BaseBranchName


Returns CHARACTER
Top

CHARACTER FeatureBranchPrefix


Returns CHARACTER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       10.10.2026 15:33:48