git-time-metric / gtm

Simple, seamless, lightweight time tracking for Git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Report by branches

morsedev opened this issue · comments

commented

It is possible to see a report by branches?, I mean, I want to know how much time I spent in a branch.

You can pipe git log into gtm like this git log --pretty=%H |gtm report. If you can figure out how to properly filter git log for the branch you can pipe that into gtm. Looks a little tricky to narrow git log down to just branch changes. See here https://stackoverflow.com/questions/4649356/how-do-i-run-git-log-to-see-changes-only-for-a-specific-branch#4649377

+1 for this feature