News for hackers. Stuff that matters.
Re:At what time of day do famous programmers work? by dahart on Thursday July 18, 2019 @12:21PM (#20471379)
Interesting; I don’t consider what I said extreme or radical at all. I’ll rephrase it into a question: what do you claim that commit time demonstrates, considering that commit times can and do in practice very often change immediately prior to push?
Re:At what time of day do famous programmers work? by erikpukinskis on Sunday July 21, 2019 @02:33PM (#20492881)
Commit time has some correlation with when code is written. It’s not perfect, but for me personally it’s usually close.

Whether that correlation models reality closely enough to be useful depends.

My understanding of your “commit time demonstrates nothing” assertion is that you are saying there is no useful information there, which seemed like a radical position for so deep in the thread.

Re:At what time of day do famous programmers work? by irishcoffee on Thursday July 18, 2019 @01:42PM (#20472188)
How can a commit time change?
Re:At what time of day do famous programmers work? by gitrebase on Thursday July 18, 2019 @10:25PM (#20475722)
git commit --amend changes author time.

git commit --amend --reset-author changes both author time and commit time.

git rebase changes commit time.

All three commands can be used just before a merge and push to clean things up. So there is no guarantee that the author time or commit time we see in the final commit history accurately represents the actual time at which the work was done.

Re:At what time of day do famous programmers work? by dahart on Thursday July 18, 2019 @03:53PM (#20473348)
It's a different commit. I was talking about introducing and then pushing new commits with different timestamps than the original, not somehow modifying timestamps on a specific commit. The commit that gets pushed can, and often does, have a different timestamp than the timestamp on the commit when the code was written.