Commit Diff


commit - 7fb414ae4d46ebdaeff458477ba801f9ad5853c4
commit + d93542d4d4d3693f2d977d334f0dbe3150e9329b
blob - 47e89f6fbada086f1643f3f5486509d81c801f95
blob + 49ede63463e6753340669f22f44dd1d2dc419a94
--- got/got-worktree.5
+++ got/got-worktree.5
@@ -124,8 +124,13 @@ Only present if a file addition or modification has be
 .Cm got stage .
 .El
 .Pp
-A corrupt or missing file index can be recreated on demand with
-.Cm got update .
+A corrupt or missing file index can be recreated on demand as follows:
+.Pp
+.Dl $ mv .got/file-index .got/file-index.bad
+.Dl $ got update # re-create .got/file-index
+.Dl $ find\ . -type f -exec touch {}\ \\\ ; # update timestamp of all files
+.Dl $ got update # sync timestamps
+.Pp
 When the file index is modified, it is read into memory in its entirety,
 modified in place, and written to a temporary file.
 This temporary file is then moved on top of the old file index with