4 comments

[ 3.1 ms ] story [ 15.6 ms ] thread
Seems like a cool project. However, what I definitely would need is to set dates to be within a specified time frame. Sometimes I write till like 3 am in the morning, and I would like to hide that. So like a hook, that makes some linear rescaling to a previously defined time frame like 8 am to 8 pm would be really nice.
I like this.

My first thought was the tool should evenly space each day's commits out over the given hours, but that would be easily detectable. Then I considered using the size of the diff to determine the amount of time until the next commit... ultimately, a random distribution is probably the best.

This is also a nice feature suggestion. Again, it would require that you do not publish (push) your commits until you definitely finished your day's work. If have no idea if this would be practical. Would it be for you?
Great minds think alike! git-privacy already supports someting like that with the privacy.limit option. The idea with the linear redistribution is nice and we already thought about such a feature, but it is complicated by the problem that you would have to know that the definitely last commit of the day is and that you do not push during the day. Otherwise you would have to re-redistribute published commit dates, which leads to diverging Git histories. I am very open to suggestions how to handle that.