Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 78024c4

Browse files
chriscoolgitster
authored andcommitted
Documentation: replace: add --graft option
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent adf8e54 commit 78024c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/git-replace.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SYNOPSIS
1010
[verse]
1111
'git replace' [-f] <object> <replacement>
1212
'git replace' [-f] --edit <object>
13+
'git replace' [-f] --graft <commit> [<parent>...]
1314
'git replace' -d <object>...
1415
'git replace' [--format=<format>] [-l [<pattern>]]
1516

@@ -73,6 +74,13 @@ OPTIONS
7374
newly created object. See linkgit:git-var[1] for details about
7475
how the editor will be chosen.
7576

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+
7684
-l <pattern>::
7785
--list <pattern>::
7886
List replace refs for objects that match the given pattern (or

0 commit comments

Comments
 (0)