from Hacker News

Show HN: Personal Time Tracking with Git

by thisdougb on 3/29/25, 10:05 AM with 7 comments

I've been trying to figure out how long feature development takes, for years. I'm not a fan of (a priori) estimations of work, which just seem like the wrong measure. I think I've got a better way.

Genuinely interested if some git gurus can improve this. Particularly around the pre-push hook, which is dependent on retained squash commit text. Or if there's an entirely better way to achieve the same thing.

  • by gerardnico on 3/31/25, 11:18 AM

    Instead of creating a tag, you could add the time in your commit message as a footer key following the conventional commit spec.

    https://www.conventionalcommits.org/en/v1.0.0/

    Ie example of commit message

    fix: prevent racing of requests

    Desc

    Time-spend: Z

  • by jarbus on 3/29/25, 11:48 AM

    Not a git guru, but I love this.