X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fgit-read-tree.txt;h=8b91847856b51fbe6727ad96e6d5e4d1fd00c815;hb=562051809589574576971c53c23aad93f8c395d9;hp=7be0cbd620b37e0b3f2dcd09372e7934ed85223c;hpb=2db0bfbc04478d9fb42f58ff50ad4123a2a9ddde;p=git.git diff --git a/Documentation/git-read-tree.txt b/Documentation/git-read-tree.txt index 7be0cbd6..8b918478 100644 --- a/Documentation/git-read-tree.txt +++ b/Documentation/git-read-tree.txt @@ -237,7 +237,7 @@ This is done to prevent you from losing your work-in-progress changes. To illustrate, suppose you start from what has been commited last to your repository: - $ JC=`cat .git/HEAD` + $ JC=`git-rev-parse --verify "HEAD^0"` $ git-checkout-index -f -u -a $JC You do random edits, without running git-update-index. And then