choffmeister / git-describe-semver

BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Support git repository checkouts using `git worktree` #5

Closed cgrindel closed 10 months ago

cgrindel commented 2 years ago

When working with repository code using git worktree, the worktree's .git is a file that references the location of the worktree's git files. This location (i.e., directory) only contains pertinent data for that worktree. In addition, it has a file called commondir that specifies the location of the rest of the repository files.

This PR updates git-descrive-semver to identify whether the current worktree uses the commondir mechanism. If so, it enables support for this mechanism in go-git.

choffmeister commented 1 year ago

Hello @cgrindel. Sorry for the delay, I completely missed your PR. Will check it today.

cgrindel commented 1 year ago

@choffmeister It does not look like the status checks started. Is there something that we can do try starting them, again?

gedw99 commented 10 months ago

Hey. I would appreciate if this can get merged.

choffmeister commented 10 months ago

@cgrindel No sure if still relevant for you after my long delay, but finally merged and released https://github.com/choffmeister/git-describe-semver/releases/tag/v0.4.0

gedw99 commented 10 months ago

thank you @choffmeister