File: git-doc.doc-base.the-racy-git-problem

package info (click to toggle)
git 1:2.11.0-3+deb9u4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 37,344 kB
  • sloc: ansic: 175,978; sh: 154,654; perl: 29,746; tcl: 21,549; python: 6,781; makefile: 3,405; lisp: 1,786; php: 120; asm: 98; csh: 45
file content (19 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Document: the-racy-git-problem
Title: Use of index and the "racy git" problem
Author: Junio C Hamano
Abstract: In order to speed up comparison between files in
 the work tree and index entries, git compares current
 lstat(2) information with saved lstat(2) information from
 whenever it updated the corresponding index entry.  A very
 quick update that does not change file size could therefore
 make git incorrectly think files in the working tree are
 unmodified even though they actually are modified.  This is
 called the "racy git" problem (discovered by Pasky), and
 the entries that would appear clean when they ought not to
 be because of this problem are called "racily clean".
 .
 This document explains how git avoids that problem.
Section: File Management

Format: Text
Files: /usr/share/doc/git-doc/technical/racy-git.txt