4 ms·
Kinda tangent, but when I was browsing NSS' repo ( https://hg.mozilla.org/projects/nss https://hg.mozilla.org/projects/nss or mirror: https://github.com/nss-dev
by thrdbndndn 5y ago
Kinda tangent, but when I was browsing NSS' repo ( https://hg.mozilla.org/projects/nss https://hg.mozilla.org/projects/nss or mirror: https://github.com/nss-dev/nss/commits/master https://github.com/nss-dev/nss/commits/master ) I found that the latest commit has a much older date (7 weeks ago) than the following ones. Why is that? (Sorry I don't know much about git other than push/pull.)
- spullara 5y agoCommitted locally long ago and recently pushed?
- er4hn 5y agoThe date of the commit is metadata which can be pushed later than it was made or even altered. If you look around you can find cute tools to alter your repo history and have the github commit history graph act as a pixelated billboard.
- account42 5y agoTo expand on what others have said, the date shown is when the change was authored, which is not neccesarily the date when the commit object was created. In open source collaborative development, pathes are usually shared either old-style on mailing lists or review software (phabricator in this case it seems) as patches which include a date and then only applied in the repo once they are reviewed. You can also get non-monotonic authorship dates without leaving a git repo (and without manually overriding the date) by cherry-picking or rebasing commits onto different branches. Also, the first link is not a git repository but a mercurial one.