summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:48:45 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:48:45 -0800
commitbe47ad8aea4f854fc2d6773456fb28f3e9f519e7 (patch)
tree9b91d912379e267f483e434627c391cc6c37f4c0 /README
parent613757c2869dde6e8c600c55d065dba24e67097a (diff)
downloadthird_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.tar.gz
third_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.tar.xz
third_party-ruby-git-be47ad8aea4f854fc2d6773456fb28f3e9f519e7.zip
added checkout_index
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 17 insertions, 1 deletions
diff --git a/README b/README
index e2d3169..816e955 100644
--- a/README
+++ b/README
@@ -228,4 +228,20 @@ Some examples of more low-level index and tree operations
end
end
- g.set_index('/path/to/index') \ No newline at end of file
+ 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
+ \ No newline at end of file