@@ -47,7 +47,7 @@ OPTIONS
47
47
48
48
-i::
49
49
Usually a merge requires the index file as well as the
50
- files in the working tree are up to date with the
50
+ files in the working tree to be up to date with the
51
51
current head commit, in order not to lose local
52
52
changes. This flag disables the check with the working
53
53
tree and is meant to be used when creating a merge of
@@ -71,21 +71,21 @@ OPTIONS
71
71
--aggressive::
72
72
Usually a three-way merge by 'git read-tree' resolves
73
73
the merge for really trivial cases and leaves other
74
- cases unresolved in the index, so that Porcelains can
74
+ cases unresolved in the index, so that porcelains can
75
75
implement different merge policies. This flag makes the
76
- command to resolve a few more cases internally:
76
+ command resolve a few more cases internally:
77
77
+
78
78
* when one side removes a path and the other side leaves the path
79
79
unmodified. The resolution is to remove that path.
80
80
* when both sides remove a path. The resolution is to remove that path.
81
- * when both sides adds a path identically. The resolution
81
+ * when both sides add a path identically. The resolution
82
82
is to add that path.
83
83
84
84
--prefix=<prefix>/::
85
85
Keep the current index contents, and read the contents
86
- of named tree-ish under directory at `<prefix>`. The
86
+ of the named tree-ish under the directory at `<prefix>`. The
87
87
original index file cannot have anything at the path
88
- `<prefix>` itself, and have nothing in `<prefix>/`
88
+ `<prefix>` itself, nor anything in the `<prefix>/`
89
89
directory. Note that the `<prefix>/` value must end
90
90
with a slash.
91
91
@@ -379,45 +379,45 @@ have finished your work-in-progress), attempt the merge again.
379
379
Sparse checkout
380
380
---------------
381
381
382
- "Sparse checkout" allows to sparsely populate working directory.
383
- It uses skip-worktree bit (see linkgit:git-update-index[1]) to tell
384
- Git whether a file on working directory is worth looking at.
382
+ "Sparse checkout" allows populating the working directory sparsely .
383
+ It uses the skip-worktree bit (see linkgit:git-update-index[1]) to tell
384
+ Git whether a file in the working directory is worth looking at.
385
385
386
- " git read-tree" and other merge-based commands (" git merge", " git
387
- checkout" ...) can help maintaining skip-worktree bitmap and working
386
+ ' git read-tree' and other merge-based commands (' git merge', ' git
387
+ checkout' ...) can help maintaining the skip-worktree bitmap and working
388
388
directory update. `$GIT_DIR/info/sparse-checkout` is used to
389
- define the skip-worktree reference bitmap. When " git read-tree" needs
390
- to update working directory, it will reset skip-worktree bit in index
389
+ define the skip-worktree reference bitmap. When ' git read-tree' needs
390
+ to update the working directory, it resets the skip-worktree bit in the index
391
391
based on this file, which uses the same syntax as .gitignore files.
392
- If an entry matches a pattern in this file, skip-worktree will be
393
- set on that entry. Otherwise, skip-worktree will be unset .
392
+ If an entry matches a pattern in this file, skip-worktree will not be
393
+ set on that entry. Otherwise, skip-worktree will be set .
394
394
395
395
Then it compares the new skip-worktree value with the previous one. If
396
- skip-worktree turns from unset to set , it will add the corresponding
397
- file back. If it turns from set to unset , that file will be removed.
396
+ skip-worktree turns from set to unset , it will add the corresponding
397
+ file back. If it turns from unset to set , that file will be removed.
398
398
399
399
While `$GIT_DIR/info/sparse-checkout` is usually used to specify what
400
- files are in. You can also specify what files are _not_ in, using
401
- negate patterns. For example, to remove file " unwanted" :
400
+ files are in, you can also specify what files are _not_ in, using
401
+ negate patterns. For example, to remove the file ` unwanted` :
402
402
403
403
----------------
404
- *
404
+ / *
405
405
!unwanted
406
406
----------------
407
407
408
- Another tricky thing is fully repopulating working directory when you
408
+ Another tricky thing is fully repopulating the working directory when you
409
409
no longer want sparse checkout. You cannot just disable "sparse
410
- checkout" because skip-worktree are still in the index and you working
411
- directory is still sparsely populated. You should re-populate working
410
+ checkout" because skip-worktree bits are still in the index and your working
411
+ directory is still sparsely populated. You should re-populate the working
412
412
directory with the `$GIT_DIR/info/sparse-checkout` file content as
413
413
follows:
414
414
415
415
----------------
416
- *
416
+ / *
417
417
----------------
418
418
419
- Then you can disable sparse checkout. Sparse checkout support in " git
420
- read-tree" and similar commands is disabled by default. You need to
419
+ Then you can disable sparse checkout. Sparse checkout support in ' git
420
+ read-tree' and similar commands is disabled by default. You need to
421
421
turn `core.sparseCheckout` on in order to have sparse checkout
422
422
support.
423
423
0 commit comments