Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: How git detects changes during commit?

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:55

Hi,

longphant wrote:
Say you check out a directory of 100 files. You edit 5 of the files, and you
go to commit the directory back. How does git know which of the 100 files
were modified (not all of them were)?
The lstat system call.  See the git-update-index(1) manual for some
hints (since most high-level commands do the equivalent of
"git update-index --refresh -q" before working with the work tree).

Hope that helps,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help