[This is preliminary documentation and is subject to change.]
Get a list of branches from the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)
Syntax
C# |
---|
public IList<BranchSpec> GetBranchSpecs( Options options ) |
Visual Basic |
---|
Public Function GetBranchSpecs ( _ options As Options _ ) As IList(Of BranchSpec) |
Visual C++ |
---|
public: IList<BranchSpec^>^ GetBranchSpecs( Options^ options ) |
Parameters
- options
- Type: Perforce.P4..::..Options
Return Value
A list containing the matching branches
Remarks
p4 help branches
branches -- Display list of branch specifications
p4 branches [-t] [-u user] [[-e|-E] nameFilter -m max]
Lists branch specifications. (See 'p4 help branch'.)
The -t flag displays the time as well as the date.
The -u user flag lists branch specs owned by the specified user.
The -e nameFilter flag lists branch specs with a name that matches
the nameFilter pattern, for example: -e 'svr-dev-rel*'. -E makes
the matching case-insensitive.
The -m max flag limits output to the specified number of branch specs.