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
1700 "shell-words",1700 "shell-words",
1701]1701]
1702 1702
1703[[package]]
1704name = "gix-dir"
1705version = "0.0.0"
1706
1703[[package]]1707[[package]]
1704name = "gix-discover"1708name = "gix-discover"
1705version = "0.26.0"1709version = "0.26.0"
Cargo.toml+1−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",
README.md+1−0
@@ -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)
crate-status.md+12−0
@@ -608,6 +608,18 @@ A plumbing crate with shared functionality regarding EWAH compressed bitmaps, as · 607 unmodified lines
608 * [x] decode on-disk representation608 * [x] decode on-disk representation
609 * [ ] encode on-disk representation609 * [ ] encode on-disk representation
610 610
611### gix-dir
612
613A 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-index623### gix-index
612 624
613The git staging area.625The git staging area.
gix-dir/CHANGELOG.md+6−0
@@ -0,0 +1,6 @@
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6and 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]
2name = "gix-dir"
3version = "0.0.0"
4repository = "https://github.com/Byron/gitoxide"
5license = "MIT OR Apache-2.0"
6description = "A crate of the gitoxide project dealing with directory walks"
7authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
8edition = "2021"
9rust-version = "1.65"
10
11[lib]
12doctest = 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