Documentation: replace: add --graft option
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Jul 19, 2014 at 17:01 UTC
78024c4e31d04cd2bdc0d734ede2d24bb33c72ef
1 file changed
+8
Documentation/git-replace.txt
+8
@@ -10,6 +10,7 @@ SYNOPSIS
10
[verse]
11
'git replace' [-f] <object> <replacement>
12
'git replace' [-f] --edit <object>
13
+'git replace' [-f] --graft <commit> [<parent>...]
14
'git replace' -d <object>...
15
'git replace' [--format=<format>] [-l [<pattern>]]
16
@@ -73,6 +74,13 @@ OPTIONS
74
newly created object. See linkgit:git-var[1] for details about
75
how the editor will be chosen.
76
77
+--graft <commit> [<parent>...]::
78
+ Create a graft commit. A new commit is created with the same
79
+ content as <commit> except that its parents will be
80
+ [<parent>...] instead of <commit>'s parents. A replacement ref
81
+ is then created to replace <commit> with the newly created
82
+ commit.
83
+
84
-l <pattern>::
85
--list <pattern>::
86
List replace refs for objects that match the given pattern (or