diff options
| author | 2025-06-09 13:43:45 +0300 | |
|---|---|---|
| committer | 2025-06-09 13:55:38 +0300 | |
| commit | 97af93b2a8ebc89364852e3f63e9fd8cfedaeedf (patch) | |
| tree | 27e2added74ee6c0ff91c9e7927491c661a8bb36 /zsh/theme/gitstatus/src/stat.h | |
| parent | 04.06.2025 (diff) | |
| download | dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.gz dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.bz2 dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.xz dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.zip | |
Перевёл dotfiles на stow
Diffstat (limited to 'zsh/theme/gitstatus/src/stat.h')
| -rw-r--r-- | zsh/theme/gitstatus/src/stat.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/zsh/theme/gitstatus/src/stat.h b/zsh/theme/gitstatus/src/stat.h deleted file mode 100644 index 4f3195a..0000000 --- a/zsh/theme/gitstatus/src/stat.h +++ /dev/null @@ -1,23 +0,0 @@ -#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_ |
