git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How git detects changes during commit?

From
Llongphant <longphant@yahoo.com>
Date
Oct 27, 2010, 20:36 UTC
Message-ID
<1288211811436-5680208.post@n2.nabble.com>

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)?

-- 
View this message in context: http://git.661346.n2.nabble.com/How-git-detects-changes-during-commit-tp5680208p5680208.html
Sent from the git mailing list archive at Nabble.com.
Next: Jonathan Nieder
Message 1 of 3 in “How git detects changes during commit?”
  1. longphantOct 27, 2010
  2. Jonathan NiederOct 27, 2010
  3. longphantOct 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.