-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to extract date from only the last line of git log output #125
Conversation
I am not super familiar with all the possible options in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #125 +/- ##
==========================================
- Coverage 85.04% 81.21% -3.84%
==========================================
Files 10 5 -5
Lines 555 330 -225
Branches 117 76 -41
==========================================
- Hits 472 268 -204
+ Misses 53 40 -13
+ Partials 30 22 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
It looks good to me but maybe an unit test would be better, to compare result between with/out the --show-signature option. What do you think? |
@Guts |
0c944b5
to
293a902
Compare
Good idea! Please, make yourself comfortable, go ahead! |
Hi @yuha0! Do you need some help or review to achieve this? |
@Guts Sorry about the delay, It's been busy at work. Also, for some reason I cannot reproduce it on my personal device... I will need to investigate a bit more |
@yuha0 no worries, take the time you have. I just needed to know if it's still an active work here or if it's stale. Can you set this PR to draft status in the meanwhile? |
Previously, the code assumes the output of `git log --format="%at"` only contains commit timestamp. But this is not true. `--format` only controls a portion of the output. `git log` command can output additional information thats not controlled by format. e.g.: When `showSignature` is set, it will always display commit signature info. This commit attempts to locate timestamps only from the very last line of `git log` output.
293a902
to
e950034
Compare
Quality Gate passedIssues Measures |
Hey @yuha0, Any chance to see this work achieved? |
Previously, the code assumes the output of
git log --format="%at"
onlycontains commit timestamp. But this is not true.
--format
only controls a portion of the output.git log
command canoutput additional information thats not controlled by format. e.g.: When
showSignature
is set, it will always display commit signature info.This commit attempts to locate timestamps only from the very last line
of
git log
output.Fixes #124