aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-12-14 09:22:18 +0000
committerGitHub <noreply@github.com>2023-12-14 09:22:18 +0000
commit02bed284891e49ff594354101c897a29af3dbb43 (patch)
treed57b186e078d2d253304fc4784ed3d207d3b7e4c /options.go
parentc8348a650177cb0fbb9ef3d0551b5a969c6b4ac3 (diff)
parent1e2b0d67ae859dc3c81fc4455290287235395d09 (diff)
downloadgo-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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/options.go b/options.go
index 8902b7e..e748b91 100644
--- a/options.go
+++ b/options.go
@@ -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