~/talk

Mastering Git’s index

Talkat ACCU 2017 · 2017-04-24..04-29· [developer-experience]
links:none on file
slides:none on file

The index is a path-to-blob mapping that doubles as a stat cache; commands shown manipulate it directly: using read-tree to populate an empty index or import a subdirectory (with prefix) to create a new repo subtree, switching indexes via GIT_INDEX_FILE, and using plumbing like update-index and checkout-index. Using --index-filter inside filter-branch avoids checkouts and runs roughly 10–20× faster. Advice covers skip-worktree versus assume-unchanged, sparse-checkout to manage large working trees, and running git update-index --refresh to avoid costly git status scans.

AI-written summary · about

  1. 0:00Intro
  2. 0:25What is Git
  3. 2:40Git attributes
  4. 3:23Gateless
  5. 4:42Out of interest
  6. 9:03The index
  7. 11:27History of Git
  8. 13:30Index
  9. 15:22Reset
  10. 23:39Why use Git
  11. 27:00Clearing the index
  12. 29:18GetRetreive
  13. 30:54GetPrefix
  14. 34:20Mono Repo
  15. 37:24Assume unchanged
  16. 39:40Skip work tree
  17. 43:17Path check out
  18. 48:26What is in the set cache
  19. 52:39Get update index refresh
  20. 53:38Git diff
  21. 55:31Storytime
  22. 59:21Performance
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.