Skip to content

Fast git status via a file system watcher

Ben Peart git 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 16 repliesIn review
  2. v46 patches 22 repliesSuperseded
  3. v36 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches23 repliesSuperseded
v15 patches20 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7bswap: add 64 bit endianness helper get_be64compat/bswap.h+4 -00 replies
2/7dir: make lookup_untracked() available outside of dir.cdir.c dir.h+4 -10 replies
3/7fsmonitor: teach git to optionally utilize a file system monitor to speed up detecting new or changed files.Makefile builtin/update-index.c cache.h +9 more+329 -122 replies
4/7fsmonitor: add test cases for fsmonitor extensiont/t7519-status-fsmonitor.sh+173 -02 replies
5/7fsmonitor: add documentation for the fsmonitor extension.Documentation/config.txt Documentation/githooks.txt Documentation/technical/index-format.txt+49 -00 replies
6/7fsmonitor: add a sample query-fsmonitor hook script for Watchmantemplates/hooks--query-fsmonitor.sample+76 -00 replies
7/7fsmonitor: add a performance testMakefile t/helper/test-drop-caches.c t/perf/p7519-fsmonitor.sh+269 -09 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan Nieder
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/7] Fast git status via a file system watcher

Changes from V4 include:

fsmonitor.c:
Only flag index dirty if fsmonitor extension is added or removed or if new cache or untracked cache entries are marked dirty

dir.c:
If an untracked cache entry is flagged as fsmonitor_dirty, fall back to existing logic to stat the file and check for changes instead of assuming it is dirty.

hooks--query-fsmonitor.sample:
Optimize query to exclude transitory files (files that were created and deleted since the last call).

Update path mangling on Windows to match Watchman beta.

test-drop-caches.c:
Add perf helper to drop the disk cache on Windows.

p7519-fsmonitor.sh:
Add perf test for fsmonitor changes

Ben Peart (7):
bswap: add 64 bit endianness helper get_be64
dir: make lookup_untracked() available outside of dir.c
fsmonitor: teach git to optionally utilize a file system monitor to
speed up detecting new or changed files.
fsmonitor: add test cases for fsmonitor extension
fsmonitor: add documentation for the fsmonitor extension.
fsmonitor: add a sample query-fsmonitor hook script for Watchman
fsmonitor: add a performance test

 Documentation/config.txt                 |   7 +
 Documentation/githooks.txt               |  23 +++
 Documentation/technical/index-format.txt |  19 +++
 Makefile                                 |   2 +
 builtin/update-index.c                   |   1 +
 cache.h                                  |   5 +
 compat/bswap.h                           |   4 +
 config.c                                 |   4 +
 dir.c                                    |  29 ++--
 dir.h                                    |   5 +
 entry.c                                  |   1 +
 environment.c                            |   1 +
 fsmonitor.c                              | 261 +++++++++++++++++++++++++++++++
 fsmonitor.h                              |   9 ++
 read-cache.c                             |  28 +++-
 t/helper/test-drop-caches.c              | 107 +++++++++++++
 t/perf/p7519-fsmonitor.sh                | 161 +++++++++++++++++++
 t/t7519-status-fsmonitor.sh              | 173 ++++++++++++++++++++
 templates/hooks--query-fsmonitor.sample  |  76 +++++++++
 unpack-trees.c                           |   1 +
 20 files changed, 904 insertions(+), 13 deletions(-)
 create mode 100644 fsmonitor.c
 create mode 100644 fsmonitor.h
 create mode 100644 t/helper/test-drop-caches.c
 create mode 100755 t/perf/p7519-fsmonitor.sh
 create mode 100755 t/t7519-status-fsmonitor.sh
 create mode 100755 templates/hooks--query-fsmonitor.sample
Signature · 1 line
2.13.0