Skip to content

Commit e2d65c1

Browse files
dschogitster
authored andcommitted
filter-branch: stop suggesting to use grafts
The graft file is deprecated now, so let's use replace refs in the example in filter-branch's man page instead. Suggested-by: Eric Sunshine <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f9f99b3 commit e2d65c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-filter-branch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ git filter-branch --parent-filter \
288288
or even simpler:
289289

290290
-----------------------------------------------
291-
echo "$commit-id $graft-id" >> .git/info/grafts
291+
git replace --graft $commit-id $graft-id
292292
git filter-branch $graft-id..HEAD
293293
-----------------------------------------------
294294

0 commit comments

Comments
 (0)