From be47ad8aea4f854fc2d6773456fb28f3e9f519e7 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Fri, 16 Nov 2007 11:48:45 -0800 Subject: added checkout_index --- README | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'README') 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 -- cgit