It's main purpose is to hold the traversal algorithm which is used to determine which files are tracked, untracked, ignored or precious. It's also automatically ignoring anything called '.git'.
Unified · Split
| @@ -1700,6 +1700,10 @@ dependencies = [ · 1699 unmodified lines | |||
| 1700 | "shell-words", | 1700 | "shell-words", |
| 1701 | ] | 1701 | ] |
| 1702 | 1702 | ||
| 1703 | [[package]] | ||
| 1704 | name = "gix-dir" | ||
| 1705 | version = "0.0.0" | ||
| 1706 | |||
| 1703 | [[package]] | 1707 | [[package]] |
| 1704 | name = "gix-discover" | 1708 | name = "gix-discover" |
| 1705 | version = "0.26.0" | 1709 | version = "0.26.0" |
| @@ -242,6 +242,7 @@ members = [ · 241 unmodified lines | |||
| 242 | "gix-diff", | 242 | "gix-diff", |
| 243 | "gix-date", | 243 | "gix-date", |
| 244 | "gix-traverse", | 244 | "gix-traverse", |
| 245 | "gix-dir", | ||
| 245 | "gix-index", | 246 | "gix-index", |
| 246 | "gix-bitmap", | 247 | "gix-bitmap", |
| 247 | "gix-worktree", | 248 | "gix-worktree", |
| @@ -133,6 +133,7 @@ is usable to some extent. · 132 unmodified lines | |||
| 133 | * `gitoxide-core` | 133 | * `gitoxide-core` |
| 134 | * **very early** _(possibly without any documentation and many rough edges)_ | 134 | * **very early** _(possibly without any documentation and many rough edges)_ |
| 135 | * [gix-date](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-date) | 135 | * [gix-date](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-date) |
| 136 | * [gix-dir](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-dir) | ||
| 136 | * **idea** _(just a name placeholder)_ | 137 | * **idea** _(just a name placeholder)_ |
| 137 | * [gix-note](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-note) | 138 | * [gix-note](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-note) |
| 138 | * [gix-fetchhead](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-fetchhead) | 139 | * [gix-fetchhead](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-fetchhead) |
| @@ -608,6 +608,18 @@ A plumbing crate with shared functionality regarding EWAH compressed bitmaps, as · 607 unmodified lines | |||
| 608 | * [x] decode on-disk representation | 608 | * [x] decode on-disk representation |
| 609 | * [ ] encode on-disk representation | 609 | * [ ] encode on-disk representation |
| 610 | 610 | ||
| 611 | ### gix-dir | ||
| 612 | |||
| 613 | A git directory walk. | ||
| 614 | |||
| 615 | * [ ] list untracked files | ||
| 616 | - [ ] `normal` - files and directories | ||
| 617 | - [ ] `all` - expand to untracked files in untracked directories | ||
| 618 | * [ ] list ignored files | ||
| 619 | - [ ] `matching` mode (show every ignored file, do not aggregate into parent directory) | ||
| 620 | - [ ] `traditional` mode (aggregate all ignored files of a folder into ignoring the folder itself) | ||
| 621 | * [ ] accelerated walk with `untracked`-cache (as provided by `UNTR` extension of `gix_index::File`) | ||
| 622 | |||
| 611 | ### gix-index | 623 | ### gix-index |
| 612 | 624 | ||
| 613 | The git staging area. | 625 | The git staging area. |
| @@ -0,0 +1,6 @@ | |||
| 1 | # Changelog | ||
| 2 | |||
| 3 | All notable changes to this project will be documented in this file. | ||
| 4 | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
| @@ -0,0 +1,14 @@ | |||
| 1 | [package] | ||
| 2 | name = "gix-dir" | ||
| 3 | version = "0.0.0" | ||
| 4 | repository = "https://github.com/Byron/gitoxide" | ||
| 5 | license = "MIT OR Apache-2.0" | ||
| 6 | description = "A crate of the gitoxide project dealing with directory walks" | ||
| 7 | authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] | ||
| 8 | edition = "2021" | ||
| 9 | rust-version = "1.65" | ||
| 10 | |||
| 11 | [lib] | ||
| 12 | doctest = false | ||
| 13 | |||
| 14 | [dependencies] | ||
| @@ -0,0 +1 @@ | |||
| 1 | ../LICENSE-APACHE | ||
| @@ -0,0 +1 @@ | |||
| 1 | ../LICENSE-MIT | ||
| @@ -0,0 +1,3 @@ | |||
| 1 | //! A crate for handling a git-style directory walk. | ||
| 2 | #![deny(rust_2018_idioms)] | ||
| 3 | #![forbid(unsafe_code)] | ||