{"thread":{"id":"35350","subject":"Possibly a bug","startedAt":"2013-11-17T02:59:20Z","lastAt":"2013-11-17T09:49:47Z","messageCount":2,"participants":["Jiergir Ogoerg","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"230721","messageId":"CAJbVpmyoZCCQU3w8oMTJfxFr4f1cSNTgF+qQW6QD5e44LYg_Ug@mail.gmail.com","threadId":"35350","inReplyTo":null,"subject":"Possibly a bug","fromName":"Jiergir Ogoerg","fromEmail":"f35f22fan@gmail.com","sentAt":"2013-11-17T02:59:20Z","receivedAt":"2013-11-17T02:59:20Z","isPatch":false,"sender":{"key":"f35f22fan@gmail.com","avatar":null},"body":"Hi,\nAs suggested by the git book/tutorial I cloned \"simplegit-progit\" to\nlearn using git.\nThe issue:\ngit log --since=5.years\nyields 2 commits, while\ngit log --since=6.years\nyields 3 commits, despite the \"Date\" in both cases being March 2008.\nIs it a bug?\n\nUsing Fedora 20 amd64 with git version 1.8.4.2\n\n\nDetails:\n//==> FIVE YEARS\nsimplegit-progit$ git log --since=5.years\ncommit ca82a6dff817ec66f44342007202690a93763949\nAuthor: Scott Chacon <schacon@gmail.com>\nDate:   Mon Mar 17 21:52:11 2008 -0700\n\n    changed the verison number\n\ncommit 085bb3bcb608e1e8451d4b2432f8ecbe6306e7e7\nAuthor: Scott Chacon <schacon@gmail.com>\nDate:   Sat Mar 15 16:40:33 2008 -0700\n\n    removed unnecessary test code\n//<== FIVE YEARS\n\n//==> SIX YEARS\nsimplegit-progit$ git log --since=6.years\ncommit ca82a6dff817ec66f44342007202690a93763949\nAuthor: Scott Chacon <schacon@gmail.com>\nDate:   Mon Mar 17 21:52:11 2008 -0700\n\n    changed the verison number\n\ncommit 085bb3bcb608e1e8451d4b2432f8ecbe6306e7e7\nAuthor: Scott Chacon <schacon@gmail.com>\nDate:   Sat Mar 15 16:40:33 2008 -0700\n\n    removed unnecessary test code\n\ncommit a11bef06a3f659402fe7563abf99ad00de2209e6\nAuthor: Scott Chacon <schacon@gmail.com>\nDate:   Sat Mar 15 10:31:28 2008 -0700\n\n    first commit\n//<== SIX YEARS\n"},{"id":"230728","messageId":"20131117094946.GA22166@sigill.intra.peff.net","threadId":"35350","inReplyTo":"CAJbVpmyoZCCQU3w8oMTJfxFr4f1cSNTgF+qQW6QD5e44LYg_Ug@mail.gmail.com","subject":"Re: Possibly a bug","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-11-17T09:49:47Z","receivedAt":"2013-11-17T09:49:47Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sun, Nov 17, 2013 at 04:59:20AM +0200, Jiergir Ogoerg wrote:\n\n> As suggested by the git book/tutorial I cloned \"simplegit-progit\" to\n> learn using git.\n> The issue:\n> git log --since=5.years\n> yields 2 commits, while\n> git log --since=6.years\n> yields 3 commits, despite the \"Date\" in both cases being March 2008.\n> Is it a bug?\n\nNo, but it is confusing.\n\nThe `--since` and `--until` flags use the committer date, not the author\ndate. Try `git log --pretty=fuller`, and you will see that the author\nand committer dates do not match for the top two commits (their\ncommitter date is within 5 years).\n\nUsually the two dates are the same, but they can be different if a\ncommit is rebased, or applied via patch.\n\n-Peff\n"}]}