summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
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