Top Method Summary
Options Name Purpose
LOGICAL DeleteBranch (character, logical) Deletes a local Git branch of the current workspace
GetBranches (table) Returns the local Git branches of the current workspace
CHARACTER GetCurrentBranch () Returns the name of the current Git branch of the workspace
DATETIME ParseCommitterDate (character) Parses a git iso8601 committer date (e.g. 2026-07-15 10:42:59 +0200) into a datetime value
ParseLocalBranches (character) Parses the git for-each-ref output lines into the ttGitBranch, ttUpstream and ttRemote temp-tables
QueryRemotes () Queries every referenced remote using git ls-remote and collects the branches that actually exist on the remote
ResolveHasRemote () Resolves the HasRemote value (Yes/No/Gone) for every branch
LOGICAL RunGitCommand (character) Executes a git command and captures its standard output into the ttGitOutputLine temp-table

Top Property Summary
Options Name Purpose
CHARACTER ProtectedBranches


Method Detail
Top

LOGICAL DeleteBranch (character, logical)

Purpose: Deletes a local Git branch of the current workspace
Notes: Throws an Exception describing the reason when the branch cannot
be deleted. The current branch and the protected branch names
(see the ProtectedBranches property) are refused. Failing git
commands are logged to the client log file

Parameters:
pcBranchName CHARACTER
The name of the local Git branch to delete
plForce LOGICAL
Logical value indicating if the branch should be deleted even when it is not fully merged
Returns LOGICAL
Logical value indicating if the branch has been deleted
Top

GetBranches (table)

Purpose: Returns the local Git branches of the current workspace
Notes: Fails silently (returns an empty temp-table) when the Git branch
information cannot be retrieved. Issues are logged to the client
log file

Parameters:
ttGitBranch TEMP-TABLE ttGitBranch
OUTPUT TABLE The temp-table with the Git branches (from Consultingwerk/Studio/Git/ttGitBranch.i)
Top

CHARACTER GetCurrentBranch ()

Purpose: Returns the name of the current Git branch of the workspace
Notes: Returns the empty string when the current branch cannot be
determined, e.g. when the workspace is not a Git repository or
the HEAD is detached

Returns CHARACTER
The name of the current Git branch
Top

DATETIME ParseCommitterDate (character)

Purpose: Parses a git iso8601 committer date (e.g. 2026-07-15 10:42:59 +0200)
into a datetime value
Notes: Returns the unknown value when the date cannot be parsed

Parameters:
pcDate CHARACTER
The committer date returned by git for-each-ref
Returns DATETIME
The parsed datetime value
Top

ParseLocalBranches (character)

Purpose: Parses the git for-each-ref output lines into the ttGitBranch,
ttUpstream and ttRemote temp-tables
Notes: Expects lines in the format <branch><|><upstream><|><committerdate>

Parameters:
pcCurrentBranch CHARACTER
The name of the current Git branch
Top

QueryRemotes ()

Purpose: Queries every referenced remote using git ls-remote and collects
the branches that actually exist on the remote
Notes: When a remote cannot be queried (network unavailable, not
authenticated) the issue is logged and the HasRemote resolution
falls back to the local remote-tracking refs for that remote

Top

ResolveHasRemote ()

Purpose: Resolves the HasRemote value (Yes/No/Gone) for every branch
Notes: Uses the authoritative ls-remote result when the remote could be
queried and falls back to the local remote-tracking refs otherwise

Top

LOGICAL RunGitCommand (character)

Purpose: Executes a git command and captures its standard output into the
ttGitOutputLine temp-table
Notes: Throws an Exception with the message written by git to the
standard error stream when the command cannot be executed or
returns a non-zero exit code. The issue is logged to the client
log file

Parameters:
pcArguments CHARACTER
The arguments to pass to the git executable
Returns LOGICAL
Logical value indicating if the command succeeded


Property Detail
Top

CHARACTER ProtectedBranches


Returns CHARACTER


Temp-Table Detail

Temp-Table ttGitBranch

Defined in:


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