History

initial version of the `gix-dir` crate

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'.

Sebastian Thiel committed 2 years ago

Commit 22acf0d1 parent 1456d2b9 files · +43 −0Browse files

Unified · Split

9 files
  1. Cargo.lock +4 −0
  2. Cargo.toml +1 −0
  3. README.md +1 −0
  4. crate-status.md +12 −0
  5. gix-dir/CHANGELOG.md +6 −0
  6. gix-dir/Cargo.toml +14 −0
  7. gix-dir/LICENSE-APACHE +1 −0
  8. gix-dir/LICENSE-MIT +1 −0
  9. gix-dir/src/lib.rs +3 −0
Cargo.lock+4−0
@@ -1700,6 +1700,10 @@ dependencies = [ · 1699 unmodified lines
17001700 "shell-words",
17011701 ]
17021702
1703+[[package]]
1704+name = "gix-dir"
1705+version = "0.0.0"
1706+
17031707 [[package]]
17041708 name = "gix-discover"
17051709 version = "0.26.0"
Cargo.toml+1−0
@@ -242,6 +242,7 @@ members = [ · 241 unmodified lines
242242 "gix-diff",
243243 "gix-date",
244244 "gix-traverse",
245+ "gix-dir",
245246 "gix-index",
246247 "gix-bitmap",
247248 "gix-worktree",
README.md+1−0
@@ -133,6 +133,7 @@ is usable to some extent. · 132 unmodified lines
133133 * `gitoxide-core`
134134 * **very early** _(possibly without any documentation and many rough edges)_
135135 * [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)
136137 * **idea** _(just a name placeholder)_
137138 * [gix-note](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-note)
138139 * [gix-fetchhead](https://github.com/Byron/gitoxide/blob/main/crate-status.md#gix-fetchhead)
crate-status.md+12−0
@@ -608,6 +608,18 @@ A plumbing crate with shared functionality regarding EWAH compressed bitmaps, as · 607 unmodified lines
608608 * [x] decode on-disk representation
609609 * [ ] encode on-disk representation
610610
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+
611623 ### gix-index
612624
613625 The git staging area.
gix-dir/CHANGELOG.md+6−0
@@ -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).
gix-dir/Cargo.toml+14−0
@@ -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]
gix-dir/LICENSE-APACHE+1−0
@@ -0,0 +1 @@
1+../LICENSE-APACHE
gix-dir/LICENSE-MIT+1−0
@@ -0,0 +1 @@
1+../LICENSE-MIT
gix-dir/src/lib.rs+3−0
@@ -0,0 +1,3 @@
1+//! A crate for handling a git-style directory walk.
2+#![deny(rust_2018_idioms)]
3+#![forbid(unsafe_code)]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t