Skip to contentSkip to conversation

checkout-index: allow checking out from higher stages.

PATCH In review Junio C Hamano 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 checkout-index: allow checking out from higher stages.

The new option, --stage=<n>, lets you copy out from an unmerged, higher stage. This is to help the new merge world order during a nontrivial merge.

---

 Documentation/git-checkout-index.txt |    6 +++
 checkout-index.c                     |   61 ++++++++++++++++++++++++----------
 2 files changed, 48 insertions(+), 19 deletions(-)

3bd348aeea24709cd9be4b9d741f79b6014cd7e3

Documentation/git-checkout-index.txt +5 -1
index 97eef22..9f32c65 100644
@@ -9,7 +9,7 @@ git-checkout-index - Copy files from the
 SYNOPSIS
 --------
 'git-checkout-index' [-u] [-q] [-a] [-f] [-n] [--prefix=<string>]
-	           [--] <file>...
+	[--stage=<number>] [--] <file>...
 
 DESCRIPTION
 -----------
@@ -40,6 +40,10 @@ OPTIONS
 	When creating files, prepend <string> (usually a directory
 	including a trailing /)
 
+--stage=<number>::
+	Instead of checking out unmerged entries, copy out the
+	files from named stage.  <number> must be between 1 and 3.
+
 --::
 	Do not interpret any more arguments as options.
 
checkout-index.c +43 -18

98 lines not on this page · raw message

Signature · 1 line
0.99.9.GIT