Y
Hacker News
new
|
ask
|
show
|
jobs
by
phil3k
16 days ago
I also considered that, but it'd require shortening the lifetime of a git branch to also capture interruptions across projects, meetings, etc. So the more you increase accuracy, the more tedious this gets.
1 comments
thisdougb
16 days ago
I just use a branch per feature or unit of work. The git hooks make the time measurement automatic.
git checkout -b feature_a <do work> git checkout master git merge feature_a
probably about 10 seconds of effort, over the course of 1-3 days of coding time.
link