Learn R Programming

attachment (version 0.4.5)

complete_remote_branch: Construct a Remote Branch Reference String

Description

This function constructs a reference string for a remote branch in a version control system like Git. It returns a formatted string combining the remote name and a specified branch or reference.

Usage

complete_remote_branch(remote, remoteref = "HEAD")

Value

A character string. If remoteref is "HEAD", it returns just the remote string. If remoteref is not "HEAD", it returns a string in the format "remote@remoteref".

Arguments

remote

A character string representing the name of the remote repository (e.g., "origin").

remoteref

A character string representing the branch or reference within the remote repository. Default is "HEAD".