-
Notifications
You must be signed in to change notification settings - Fork 142
sparse-checkout: list directories in cone mode #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ THE FUTURE. | |
COMMANDS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Eric Sunshine wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Elijah Newren wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Elijah Newren wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
|
||
-------- | ||
'list':: | ||
Provide a list of the contents in the sparse-checkout file. | ||
Describe the patterns in the sparse-checkout file. | ||
|
||
'init':: | ||
Enable the `core.sparseCheckout` setting. If the | ||
|
@@ -150,11 +150,30 @@ expecting patterns of these types. Git will warn if the patterns do not match. | |
If the patterns do match the expected format, then Git will use faster hash- | ||
based algorithms to compute inclusion in the sparse-checkout. | ||
|
||
In the cone mode case, the `git sparse-checkout list` subcommand will list the | ||
directories that define the recursive patterns. For the example sparse-checkout | ||
file above, the output is as follows: | ||
|
||
-------------------------- | ||
$ git sparse-checkout list | ||
A/B/C | ||
-------------------------- | ||
|
||
If `core.ignoreCase=true`, then the pattern-matching algorithm will use a | ||
case-insensitive check. This corrects for case mismatched filenames in the | ||
'git sparse-checkout set' command to reflect the expected cone in the working | ||
directory. | ||
|
||
|
||
SUBMODULES | ||
---------- | ||
|
||
If your repository contains one or more submodules, then those submodules will | ||
appear based on which you initialized with the `git submodule` command. If | ||
your sparse-checkout patterns exclude an initialized submodule, then that | ||
submodule will still appear in your working directory. | ||
|
||
|
||
SEE ALSO | ||
-------- | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Derrick Stolee wrote (reply to this):