git_time_t

Cross-platform compatibility types for off_t / time_t

NOTE: This needs to be in a public header so that both the library implementation and client applications both agree on the same types. Otherwise we get undefined behavior.

Use the "best" types that each platform provides. Currently we truncate these intermediate representations for compatibility with the git ABI, but if and when it changes to support 64 bit types, our code will naturally adapt. NOTE: These types should match those that are returned by our internal stat() functions, for all platforms.

  1. alias git_time_t = __time64_t
    version(none)
    extern (C) nothrow @nogc
    alias git_time_t = __time64_t
  2. alias git_time_t = __time64_t
  3. alias git_time_t = long

Meta