git-time-metric / gtm

Simple, seamless, lightweight time tracking for Git
MIT License
973 stars 52 forks source link

[Feature request] Support for git worktree #69

Open ulex opened 7 years ago

ulex commented 7 years ago

Git repository can have multiple working trees, allowing you to check out more than one branch at a time. https://git-scm.com/docs/git-worktree Currently, gtm can't be used in linked working trees.

(ins) /c/work/feature gtm init
Unable to intialize Git Time Metric, Git repository not found in

gtm record just don't do anything.

mschenk42 commented 7 years ago

I think the issue may be the version of libgit2 gtm is currently using. Looks like they have recently added support for work trees. I'll see if I can upgrade to the latest libgit2. https://github.com/libgit2/libgit2/pull/3436

mschenk42 commented 7 years ago

Currently waiting for git2go to update to a newer version of libgit2. There's some updates in libgit2 for the support of git worktree. Hoping that will allow gtm to support this also.