-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
gix-date
towards 1.0
#471
Comments
Having a look at this as it seems like an easy introduction. I assume the goal with WIP: willstott101@2da9377 Have some comments there re when git (2.37.2) chooses to show timezones seeming a bit weird to me. Another question that might help me finish this off: Should I prevent the |
Final question re(garding) |
I am glad you are giving it a shot, thank you!
As baseline,
I think it's important to do the same thing, unless it's clearly a bug. Here that doesn't seem to be the case though. However, there could be configuration options to not display the timezone, for example, to allow further customization. It's perfectly fine to do that as long as it's possible to get git behaviours.
It's currently exposed and it can remain exposed. The
(I have to assume that Anyway, I think it will be easier to discuss this over a PR, moving forward. |
Ok, I'll try and do what git does as closely as I can. I'd be inclined to say that adding more format types, rather than additional flags or options might provide an easier to understand API surface. But regardless I think I'll keep the scope of the incoming PR to replicating git.
The
Absolutely. |
It's definitely something you can experiment with to see what feels right. Looking forward to seeing you over in the PR section :). |
This should make the swap from `time` to `jiff` easier. This comment[1] indicates that it's okay for `time` to be a public dependency, but since this patch series is about swapping `time` for `jiff`, it seemed appropriate to take this step first. And in particular, it was *almost* already the case that `time` was a private dependency of `gix-date`. The only thing we really had to button up was the exposure of `time`'s custom formatting description language. Jiff doesn't support `time`'s custom formatting machinery and instead uses a strftime/strptime like API. We could expose that instead, but since nothing (other than a test) was actually utilizing `time`'s custom formatting machinery external to `gix-date`, I figured we might as well completely encapsulate it. [1]: GitoxideLabs#471 (comment)
This should make the swap from `time` to `jiff` easier. This comment[1] indicates that it's okay for `time` to be a public dependency, but since this patch series is about swapping `time` for `jiff`, it seemed appropriate to take this step first. And in particular, it was *almost* already the case that `time` was a private dependency of `gix-date`. The only thing we really had to button up was the exposure of `time`'s custom formatting description language. Jiff doesn't support `time`'s custom formatting machinery and instead uses a strftime/strptime like API. We could expose that instead, but since nothing (other than a test) was actually utilizing `time`'s custom formatting machinery external to `gix-date`, I figured we might as well completely encapsulate it. [1]: GitoxideLabs#471 (comment)
We track features we consider necessary to release version 1.0 of the
git-date
crate. The following listing may not be complete, and doesn't have to be in order to qualify. 1.0 can be an minimal viable product despitegit
supporting additional detailsFeatures
jiff
for stability and multi-threadednow()
with localtime supporttime
crate.time
tojiff
#1474log
support fortracing
ingix
CLI as it will emit log messages.time
crate is already a dependency.Time
serializationtime
crate which supports flexible formatting?2005-04-07
format - once available use it when printing commit disambiguation information.human
formatlocal
formatraw
andunix
formatgix log
that allows to set the time and prints a git-log line by line. Validate that the printed dates are correct and there is no mismatch between UTC/local times.The text was updated successfully, but these errors were encountered: