diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 11:48:45 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-16 11:48:45 -0800 |
commit | be47ad8aea4f854fc2d6773456fb28f3e9f519e7 (patch) | |
tree | 9b91d912379e267f483e434627c391cc6c37f4c0 /README | |
parent | 613757c2869dde6e8c600c55d065dba24e67097a (diff) | |
download | third_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-- | README | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |