Cjku/git: Difference between revisions

48 bytes added ,  30 October 2014
Line 201: Line 201:
[[File:gitcache1.png|thumb|center|800px|Figure 3. cache - add files.]]
[[File:gitcache1.png|thumb|center|800px|Figure 3. cache - add files.]]
[[File:gitcache2.png|thumb|center|800px|Figure 4. cache - modify a file.]]
[[File:gitcache2.png|thumb|center|800px|Figure 4. cache - modify a file.]]
XXXXXXXXXXXXXXXXXX


To keep what you have changed in working directory to object store, you have to
To keep what you have changed in working directory to object store, you have to
# Track files you change.
# Track files you change.
# Cache this tracked file
# Cache this tracked file - hash -> generate new blob
# To snapshot the difference between index and current tree, new tree will be created.
# To snapshot the difference between index and current tree, new tree will be created.
# Create a new commit object, which refer to this new tree, and record commit message, author and committer.
# Create a new commit object, which refer to this new tree, and record commit message, author and committer.
Confirmed users
1,643

edits