diff options
| author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 13:24:30 -0800 |
|---|---|---|
| committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 13:24:30 -0800 |
| commit | bc60052b519b8b991e50b8ccb30f2b76ad125996 (patch) | |
| tree | c7e50409f58e58c852793544a901850498c00f9b /doc/files | |
| parent | be47ad8aea4f854fc2d6773456fb28f3e9f519e7 (diff) | |
| download | third_party-ruby-git-bc60052b519b8b991e50b8ccb30f2b76ad125996.tar.gz third_party-ruby-git-bc60052b519b8b991e50b8ccb30f2b76ad125996.tar.xz third_party-ruby-git-bc60052b519b8b991e50b8ccb30f2b76ad125996.zip | |
updated the docs
Diffstat (limited to 'doc/files')
| -rw-r--r-- | doc/files/README.html | 42 | ||||
| -rw-r--r-- | doc/files/lib/git/base_rb.html | 2 | ||||
| -rw-r--r-- | doc/files/lib/git/branch_rb.html | 2 | ||||
| -rw-r--r-- | doc/files/lib/git/index_rb.html | 2 | ||||
| -rw-r--r-- | doc/files/lib/git/lib_rb.html | 9 | ||||
| -rw-r--r-- | doc/files/lib/git/object_rb.html | 2 | ||||
| -rw-r--r-- | doc/files/lib/git/path_rb.html | 2 | ||||
| -rw-r--r-- | doc/files/lib/git_rb.html | 2 |
8 files changed, 55 insertions, 8 deletions
diff --git a/doc/files/README.html b/doc/files/README.html index 69d8471..8776a1a 100644 --- a/doc/files/README.html +++ b/doc/files/README.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Tue Nov 13 08:54:36 PST 2007</td> + <td>Fri Nov 16 11:43:31 PST 2007</td> </tr> </table> </div> @@ -305,6 +305,46 @@ And here are the operations that will need to write to your git repository. g.push g.push(g.remote('name')) </pre> +<p> +Some examples of more low-level index and tree operations +</p> +<pre> + g.with_temp_index do + + g.read_tree(tree3) # calls self.index.read_tree + g.read_tree(tree1, :prefix => 'hi/') + + c = g.commit_tree('message') + # or # + t = g.write_tree + c = g.commit_tree(t, :message => 'message', :parents => [sha1, sha2]) + + g.branch('branch_name').update_ref(c) + g.update_ref(branch, c) + + g.with_temp_working do # new blank working directory + g.checkout + g.checkout(another_index) + g.commit # commits to temp_index + end + end + + g.set_index('/path/to/index') + + g.with_index(path) do + # calls set_index, then switches back after + end + + g.with_working(dir) do + # calls set_working, then switches back after + end + + g.with_temp_working(dir) do + g.checkout_index(:prefix => dir, :path_limiter => path) + # do file work + g.commit # commits to index + end +</pre> </div> diff --git a/doc/files/lib/git/base_rb.html b/doc/files/lib/git/base_rb.html index b88352c..ac94e28 100644 --- a/doc/files/lib/git/base_rb.html +++ b/doc/files/lib/git/base_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Tue Nov 13 07:35:24 PST 2007</td> + <td>Fri Nov 16 11:38:17 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/branch_rb.html b/doc/files/lib/git/branch_rb.html index 2c79e83..6ad83e0 100644 --- a/doc/files/lib/git/branch_rb.html +++ b/doc/files/lib/git/branch_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 17:19:18 PST 2007</td> + <td>Fri Nov 16 11:34:13 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/index_rb.html b/doc/files/lib/git/index_rb.html index c4d1cfa..d940a8b 100644 --- a/doc/files/lib/git/index_rb.html +++ b/doc/files/lib/git/index_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Wed Nov 07 15:40:20 PST 2007</td> + <td>Fri Nov 16 11:34:13 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/lib_rb.html b/doc/files/lib/git/lib_rb.html index 2462126..880a478 100644 --- a/doc/files/lib/git/lib_rb.html +++ b/doc/files/lib/git/lib_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Mon Nov 12 17:40:54 PST 2007</td> + <td>Fri Nov 16 11:42:13 PST 2007</td> </tr> </table> </div> @@ -69,6 +69,13 @@ <div id="contextContent"> + <div id="requires-list"> + <h3 class="section-bar">Required files</h3> + + <div class="name-list"> + tempfile + </div> + </div> </div> diff --git a/doc/files/lib/git/object_rb.html b/doc/files/lib/git/object_rb.html index b1cfe7d..6493bfe 100644 --- a/doc/files/lib/git/object_rb.html +++ b/doc/files/lib/git/object_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Tue Nov 13 06:37:18 PST 2007</td> + <td>Thu Nov 15 17:08:18 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/path_rb.html b/doc/files/lib/git/path_rb.html index edc7fbf..f575d7a 100644 --- a/doc/files/lib/git/path_rb.html +++ b/doc/files/lib/git/path_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sat Nov 10 15:17:16 PST 2007</td> + <td>Fri Nov 16 11:34:13 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git_rb.html b/doc/files/lib/git_rb.html index 192691a..7fac2e8 100644 --- a/doc/files/lib/git_rb.html +++ b/doc/files/lib/git_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Tue Nov 13 07:04:48 PST 2007</td> + <td>Fri Nov 16 11:34:13 PST 2007</td> </tr> </table> </div> |
