{"thread":{"id":"48200","subject":"Possible bug in git log with date ranges","startedAt":"2018-04-02T11:56:02Z","lastAt":"2018-04-02T12:17:29Z","messageCount":2,"participants":["David Hoyle","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"343575","messageId":"CAFGVh0yh-w3=s5WBK-HqHQd+dWKgpnqytF4E3mXv_HxrC1i78Q@mail.gmail.com","threadId":"48200","inReplyTo":null,"subject":"Possible bug in git log with date ranges","fromName":"David Hoyle","fromEmail":"davidghoyle@gmail.com","sentAt":"2018-04-02T11:55:16Z","receivedAt":"2018-04-02T11:56:02Z","isPatch":false,"sender":{"key":"davidghoyle@gmail.com","avatar":null},"body":"Hi,\n\nHopefully I've read the readme file correctly for submitting something\nthat might be a bug.\n\nI've recently migrated projects from an old version control system\n(JEDI VCS) to Git (which I really like BTW). The way this was done was\nby extracting the files from the original database and saving them to\na folder layout and then running git add / commit on the files. When\nusing the commit command I've used the --date switch to commit the\nfiles using their original dates. However if I run git log with say\n--since=date it seems as if this command uses the actual date the\ncommit was entered not the date given for the commit. The same seems\nto apply to the other date filtering switches.\n\nBelow is an example using a log alias switch shows dates in a single\nline format.\n\nDate: Mon  2 Apr 2018, Time: 12:39:21, Location: D:\\Documents\\RAD\nStudio\\Applications\\Eidolon.GIT\n>git lg1 --since=01/Jan/2018\n* 9ce470f - (Sat Jan 20 11:54:54 2018 +0000) Prevent an overflow with\nan Int64 for integers by not converting. - DGH2112 (HEAD ->\nDevelopment, master)\n* 863988f - (Sat Jan 20 11:53:44 2018 +0000) Tested large hard coded\ninteger conversion integers - stopped conversion and left as string. -\nDGH2112\n* e14ecc9 - (Thu Jan 4 16:33:49 2018 +0000) Added new sub-option for\nHard Coded Integers to skip 'DIV 2'. - DGH2112\n* 6039285 - (Wed Jan 3 21:51:08 2018 +0000) Bracketed CodeSiteLogging\nwith a CODESITE IFDEF. - DGH2112\n* 651c682 - (Wed Jan 3 21:50:39 2018 +0000) Bracketed CodeSiteLogging\nwith a CODESITE IFDEF. - DGH2112\n* c94ba4e - (Wed Jan 3 19:40:42 2018 +0000) Fixed unit name\ncorrection. - DGH2112\n* 368258b - (Wed Jan 3 14:09:48 2018 +0000) Separated Metric and Check\noptions from their sub-options (made them a simple enumerte set). -\nDGH2112\n* d7aa03e - (Tue Jan 2 18:10:20 2018 +0000) Fixed issues with disabled\nmetrics and checks showing up in the editor reports. - DGH2112\n* f7fbe87 - (Fri Dec 29 20:59:22 2017 +0000) Fixed cyclometric\ncomplexity test as the method default is 1 not 0. - DGH2112\n* ab609f9 - (Thu Dec 28 22:54:45 2017 +0000) Added two new document\noptions for auto hiding checks and metrics with no issues. - DGH2112\n* 6ed4786 - (Thu Dec 28 22:54:24 2017 +0000) Added two new document\noptions for auto hiding checks and metrics with no issues. - DGH2112\n* e422751 - (Thu Dec 28 22:42:31 2017 +0000) Added two new document\noptions for auto hiding checks and metrics with no issues. - DGH2112\n* d8a9b06 - (Thu Dec 28 18:11:11 2017 +0000) Updated all reference to\nAddModuleCheck to AddCheck and update the method with checks. -\nDGH2112\n* 52bd768 - (Wed Dec 27 23:31:52 2017 +0000) Fixed depreciated\nIsLetter().\\nAdd the ability for metrics to be marked as overridden. -\nDGH2112\n* 0b05b16 - (Wed Dec 27 22:51:53 2017 +0000) Split metrics and checks. - DGH2112\n* e94ab97 - (Wed Dec 27 16:13:00 2017 +0000) Fixed unit backward\ncompatibility. - DGH2112\n* d6fde37 - (Wed Dec 27 15:12:53 2017 +0000) Fixed TParallel.For(). - DGH2112\n* 9161ded - (Sat Dec 23 16:51:33 2017 +0000) Updated code for\nVirtualTress 5.5.2. - DGH2112\n* 2fa264d - (Sun Dec 17 14:02:54 2017 +0000) Fixed tests. - DGH2112\n* 75d438f - (Sun Dec 17 12:09:04 2017 +0000) Fixed cyclometric\ncomlpexity sub options for boolean expressions. - DGH2112\n* 9075a62 - (Sun Dec 17 11:56:55 2017 +0000) Broke a part metrics and\nchecks and their sub options. - DGH2112\n* 76b5ec9 - (Sat Dec 16 21:01:18 2017 +0000) Broke a part metrics and\nchecks and sub options. - DGH2112\n* 9807ad4 - (Tue Dec 12 20:43:04 2017 +0000) Tested unicode\nidentifiers. - DGH2112\n* d831bc0 - (Sat Dec 9 20:35:05 2017 +0000) Fixed missing CONST in\nparameters. - DGH2112\n* fab9981 - (Sun Nov 26 19:22:21 2017 +0000) Moved some of the metric\nchecks so that they only work on implemented methods not declarations.\n- DGH2112\n* c61f460 - (Sun Nov 19 20:22:43 2017 +0000) Updated the special tags\nto have custom fonts styles, fore and background colours. - DGH2112\n* 7d1fced - (Sun Nov 12 19:47:00 2017 +0000) Fixed metrics for non\nunit implementations. - DGH2112\n* 32fe4de - (Sun Nov 12 19:45:21 2017 +0000) Added test for checks and\nmetrics. - DGH2112\n* 6827a22 - (Sun Nov 12 13:40:54 2017 +0000) Fixed\nTestGrammarForErrors. - DGH2112\n* 8713e52 - (Sun Nov 12 13:07:57 2017 +0000) Added Doc Conflicts and\nMertrics to the list of checks. - DGH2112\n* 0e5c169 - (Sun Nov 12 10:03:10 2017 +0000) Added an END line to\nrecord, objects ,classes and interfaces. - DGH2112\n* ac8091c - (Sun Nov 5 20:22:23 2017 +0000) Updated the special tags\nto have custom fonts styles, fore and background colours. - DGH2112\n* 10dacab - (Sun Nov 5 16:19:31 2017 +0000) Fixed tests for Program,\nLibrary and Packages where Uses does not have Interface and\nImplementation sections. - DGH2112\n* e7996fa - (Sun Nov 5 16:17:44 2017 +0000) Ensured metrics are\nexpanded. - DGH2112\n* 3f6d401 - (Sun Nov 5 16:17:25 2017 +0000) Added checks for Empty\nFOR, WHILE, REPEAT, and BEGIN END. - DGH2112\n* 579ebc8 - (Fri Nov 3 19:07:44 2017 +0000) Fixed capitalised USES\nclause. - DGH2112\n* 673de9a - (Sun Oct 29 10:25:03 2017 +0000) Added checks and metrics\nto the module and did some refactoring in the process. - DGH2112\n* ecd7f2b - (Sat Oct 28 12:02:06 2017 +0100) Updated the signatures of\na few of the base methods to have CONST keywords for their parameters.\n- DGH2112\n* 105c6b9 - (Fri Oct 27 21:04:18 2017 +0100) Added CONST to\nparameters. - DGH2112\n* e639e91 - (Fri Oct 27 21:04:06 2017 +0100) Added CONST to\nparameters. - DGH2112\n* f4a1576 - (Fri Oct 27 21:03:56 2017 +0100) Added CONST to\nparameters. - DGH2112\n* de2052e - (Fri Oct 27 21:03:50 2017 +0100) Added CONST to\nparameters. - DGH2112\n* 23094dd - (Fri Oct 27 21:03:44 2017 +0100) Added CONST to\nparameters. - DGH2112\n* 40380c0 - (Fri Oct 27 21:03:39 2017 +0100) Added CONST to\nparameters. - DGH2112\n* 3d0aa7e - (Fri Oct 27 21:03:16 2017 +0100) Added CONST to\nparameters. - DGH2112\n* 88cbfe1 - (Sun Oct 22 12:03:15 2017 +0100) Updated code to a\nContainer parameter in AddIssue(). - DGH2112\n* 05ddbcd - (Sun Oct 22 12:02:50 2017 +0100) Updated code to a\nContainer parameter in AddIssue(). - DGH2112\n\nregards\nDavid Hoyle\n"},{"id":"343577","messageId":"871sfxx0od.fsf@evledraar.gmail.com","threadId":"48200","inReplyTo":"CAFGVh0yh-w3=s5WBK-HqHQd+dWKgpnqytF4E3mXv_HxrC1i78Q@mail.gmail.com","subject":"Re: Possible bug in git log with date ranges","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2018-04-02T12:17:22Z","receivedAt":"2018-04-02T12:17:29Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Mon, Apr 02 2018, David Hoyle wrote:\n\n> Hi,\n>\n> Hopefully I've read the readme file correctly for submitting something\n> that might be a bug.\n>\n> I've recently migrated projects from an old version control system\n> (JEDI VCS) to Git (which I really like BTW). The way this was done was\n> by extracting the files from the original database and saving them to\n> a folder layout and then running git add / commit on the files. When\n> using the commit command I've used the --date switch to commit the\n> files using their original dates. However if I run git log with say\n> --since=date it seems as if this command uses the actual date the\n> commit was entered not the date given for the commit. The same seems\n> to apply to the other date filtering switches.\n\nThe --date=* switch to git-commit sets the author date, but the date\nnarrowing options to git-log use the committer date. See if when you\nrun:\n\n    git log --pretty=format:\"%aD - %cD\"\n\nWhether what you're getting doesn't make sense in terms of the second\ndate.\n\nYou can use GIT_COMMITTER_DATE to get what you want, see \"DATE FORMATS\"\nin git-commit(1).\n"}]}