git-time-metric / gtm

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

Submodule #85

Closed acuarica closed 6 years ago

acuarica commented 6 years ago

This PR has the tests fixed.

I've implemented the submodule feature. The basic work flow seems to work fine: init/status/commit/report. But more tests are very welcome.

Now there is a distinction between the git repo itself (the .git dir in most cases), and the working tree root. Instead of cat ".git", now the work tree root is obtained by open the repository and asking for the working tree root. If I'm missing something please let me know.

Please keep in mind that I just started with golang.

Comments and ideas are more than welcome.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.002%) to 66.53% when pulling b1dc95c448eda7acc4e260a845b7311aec6005b1 on acuarica:submodule into f39c40cdc7afbcc5320e9c614cb7f358803eaaf5 on git-time-metric:submodule.

mschenk42 commented 6 years ago

Thanks Luis. I appreciate the contribution. I'm going to merge this into the submodule branch. I have some changes I'd like to make. I'll create another PR so you can review them and we can adjust further as needed.