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 <sunshine@sunshineco.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Apr 29, 2018 at 00:44 UTC
e2d65c1ea810f34681c3f3aba03c58b6e8484b3f
1 file changed
+1
-1
Documentation/git-filter-branch.txt
+1
-1
@@ -288,7 +288,7 @@ git filter-branch --parent-filter \
288
or even simpler:
289
290
-----------------------------------------------
291
-echo "$commit-id $graft-id" >> .git/info/grafts
291
+git replace --graft $commit-id $graft-id
292
git filter-branch $graft-id..HEAD
293
-----------------------------------------------
294