// Returns information about a repository branch, including its name and the last
// commit ID.
Returns information about a repository branch, including its name and the last
commit ID.
// Returns information about a repository branch including its name and the last // commit ID .
func (c *Client) GetBranch(ctx context.Context, params *GetBranchInput, optFns ...func(*Options)) (*GetBranchOutput, error) {
	if params == nil {
		params = &GetBranchInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetBranch", params, optFns, addOperationGetBranchMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetBranchOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetBranch ( ctx context . Context , params * GetBranchInput , optFns ... func ( * Options ) ) ( * GetBranchOutput , error ) { if params == nil { params = & GetBranchInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetBranchMiddlewares ) if err != nil { return nil , err } out := result . ( * GetBranchOutput ) out . ResultMetadata = metadata return out , nil }
Returns information about a repository branch, including its name and the last
commit ID.
Returns information about a repository branch including its name and the last commit ID .