diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-12-14 09:22:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 09:22:18 +0000 |
commit | 02bed284891e49ff594354101c897a29af3dbb43 (patch) | |
tree | d57b186e078d2d253304fc4784ed3d207d3b7e4c /options.go | |
parent | c8348a650177cb0fbb9ef3d0551b5a969c6b4ac3 (diff) | |
parent | 1e2b0d67ae859dc3c81fc4455290287235395d09 (diff) | |
download | go-git-02bed284891e49ff594354101c897a29af3dbb43.tar.gz |
Merge pull request #966 from aymanbagabas/taghash-checkout
git: worktree checkout tag hash id (#959)
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -324,9 +324,9 @@ var ( // CheckoutOptions describes how a checkout operation should be performed. type CheckoutOptions struct { - // Hash is the hash of the commit to be checked out. If used, HEAD will be - // in detached mode. If Create is not used, Branch and Hash are mutually - // exclusive. + // Hash is the hash of a commit or tag to be checked out. If used, HEAD + // will be in detached mode. If Create is not used, Branch and Hash are + // mutually exclusive. Hash plumbing.Hash // Branch to be checked out, if Branch and Hash are empty is set to `master`. Branch plumbing.ReferenceName |