Top Method Summary
Options Name Purpose
GetBranches (table) Returns the local Git branches of the current 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
RunGitCommand (character, logical) Executes a git command and captures its standard output into the ttGitOutputLine temp-table


Method Detail
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

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

RunGitCommand (character, logical)

Purpose: Executes a git command and captures its standard output into the
ttGitOutputLine temp-table
Notes: Fails silently: when the command cannot be executed or returns a
non-zero exit code the issue is logged to the client log file and
the output parameter is set to false

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


Temp-Table Detail

Temp-Table ttGitBranch

Defined in:


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       20.07.2026 16:11:07