my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

3 years ago
  1. // Copyright 2019 Roman Perepelitsa.
  2. //
  3. // This file is part of GitStatus.
  4. //
  5. // GitStatus is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // GitStatus is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with GitStatus. If not, see <https://www.gnu.org/licenses/>.
  17. #ifndef ROMKATV_GITSTATUS_CHECK_DIR_MTIME_H_
  18. #define ROMKATV_GITSTATUS_CHECK_DIR_MTIME_H_
  19. namespace gitstatus {
  20. // Similar to `git update-index --test-untracked-cache` but performs all tests
  21. // in parallel, so the total testing time is one second regardless of the number
  22. // of tests. It also performs fewer tests because gitstatus imposes fewer
  23. // requirements on the filesystem in order to take advantage of untracked cache.
  24. bool CheckDirMtime(const char* root_dir);
  25. } // namespace gitstatus
  26. #endif // ROMKATV_GITSTATUS_CHECK_DIR_MTIME_H_