Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 26, 2022 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9b30d8bd628a42a87dcca1a1b5804c16 to your computer and use it in GitHub Desktop.
Save Whateverable/9b30d8bd628a42a87dcca1a1b5804c16 to your computer and use it in GitHub Desktop.
bisectable6
old=2019.11 say Date.new('2015-11-24').last-date-in-month;
Bisecting: 2012 revisions left to test after this (roughly 11 steps)
[5ee3d5381eb59fc81c82b864fccd00b762959039] [NQP Bump] Brings 7 commits
»»»»» Testing 5ee3d5381eb59fc81c82b864fccd00b762959039
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e8e2d3c8d85eeef801580c94dfb1398b46360d01
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/jL8S73INj3 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0144905fb0e1de372ffbf6c8a01d3efe14cd22b0
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 627b39b849f5cc24f246e84374178ca1918b21d5
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a4906a713b75948ed4d35ebc94bc006ede3cb72f
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/jL8S73INj3 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5644c709a778218f80eaea23e5945ec9ff30c648
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5610416c87a95338c32f8080fe595699bdcd927f
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 48688df2ab2bbb8f3f990b6f5ac857f2a15b2d7a
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e5ecdc4382d2739a701be7956fad52e897936fea
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 77b7e0cde5dca4d5250c95ee31954522e9d19074
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/jL8S73INj3 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 92750571e48e8e04e382cc7e9e0f5aae25a5bc84
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2fb7198f3da8ec0b76d1995ae0775378951717fe
»»»»» Script output:
2015-11-30
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
2fb7198f3da8ec0b76d1995ae0775378951717fe is the first new commit
commit 2fb7198f3da8ec0b76d1995ae0775378951717fe
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Thu Apr 16 20:30:25 2020 +0200
Add Date.last-date-in-month
This short-cut method gives you the last date in the month of the
Date object, or returns the invocant if the day value is already
the last day of the month.
This should allow for much easier ranges like
$date .. $date.last-date-in-month
for all remaining dates in the month.
:040000 040000 e81a1b488991c1a33139ed98a27665c984f08b8b 7ffbeade83386b686bae86c77a7e2feedb60abda M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment