The distribution does not package the theme, and the predecessor cloned whatever upstream's default branch held the day a hook ran (novox/hq ADR 0205). So upstream's v1.20.0 release is vendored verbatim, with its licence, and shipped as an archive the host unpacks under the account's home and checks by digest. The prompt's configuration is today's ~/.p10k.zsh byte for byte, as a second archive. Inline, its 86 KB would ride in every declaration and be unreviewable JSON. The zsh code that loads both is a contribution to the normal slot (ADR 0204). Instant prompt stays off, as it is today.
24 lines
550 B
C++
24 lines
550 B
C++
#ifndef ROMKATV_GITSTATUS_STAT_H_
|
|
#define ROMKATV_GITSTATUS_STAT_H_
|
|
|
|
#include <sys/stat.h>
|
|
|
|
namespace gitstatus {
|
|
|
|
inline const struct timespec& MTim(const struct stat& s) {
|
|
#ifdef __APPLE__
|
|
return s.st_mtimespec;
|
|
#else
|
|
return s.st_mtim;
|
|
#endif
|
|
}
|
|
|
|
inline bool StatEq(const struct stat& x, const struct stat& y) {
|
|
return MTim(x).tv_sec == MTim(y).tv_sec && MTim(x).tv_nsec == MTim(y).tv_nsec &&
|
|
x.st_size == y.st_size && x.st_ino == y.st_ino && x.st_mode == y.st_mode;
|
|
}
|
|
|
|
} // namespace gitstatus
|
|
|
|
#endif // ROMKATV_GITSTATUS_STAT_H_
|