zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
zpmod_rehash.h File Reference

Incremental PATH diff rehash entrypoint. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZPMOD_REHASH_H
 

Functions

int zp_rehash_diff_core (char *nam)
 

Detailed Description

Incremental PATH diff rehash entrypoint.

Phase 2 scaffold: zpmod rehash-diff will rehash only new/changed PATH segments versus a cached snapshot of prior directories + mtimes.

Definition in file zpmod_rehash.h.

Macro Definition Documentation

◆ ZPMOD_REHASH_H

#define ZPMOD_REHASH_H

Definition at line 4 of file zpmod_rehash.h.

Function Documentation

◆ zp_rehash_diff_core()

int zp_rehash_diff_core ( char *  nam)

Definition at line 241 of file rehash_diff.c.

References rh_entry::ino, rh_vec::items, rh_entry::mtime, rh_entry::path, rh_entry::present_now, rh_collect_current(), rh_load(), rh_vec_free(), rh_vec_init(), rh_write(), rh_vec::size, zp_icon(), zp_rh_file(), and zsfree().

Referenced by bin_zpmod().

Here is the call graph for this function:
Here is the caller graph for this function: