From 1e2b0d67ae859dc3c81fc4455290287235395d09 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 12 Dec 2023 12:26:54 -0500 Subject: git: worktree checkout tag hash id (#959) Allow checking out a worktree using a tag hash id. Fixes: https://github.com/go-git/go-git/issues/959 Supersedes: https://github.com/go-git/go-git/pull/964 --- options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'options.go') 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 -- cgit