Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.9.0 (2023-08-22)

Chore

  • don't call crate ‘WIP’ in manifest anymore.

Other

  • make clear that normalize() does not touch duplicate path separators nor single ..

New Features (BREAKING)

  • remove Spec type in favor of gix-pathspec::Pattern. The latter isn't included to keep concerns and crates separate.

Commit Statistics

  • 5 commits contributed to the release over the course of 12 calendar days.
  • 30 days passed between releases.
  • 3 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Update changelogs prior to release (f23ea88)
    • Don't call crate ‘WIP’ in manifest anymore. (229bd48)
    • Merge branch ‘pathspec-matching’ (9f4dfe0)
    • Remove Spec type in favor of gix-pathspec::Pattern. (df83d74)
    • Make clear that normalize() does not touch duplicate path separators nor single .. (5b5983a)

0.8.4 (2023-07-22)

A maintenance release without user-facing changes.

Commit Statistics

  • 4 commits contributed to the release over the course of 1 calendar day.
  • 23 days passed between releases.
  • 0 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-features v0.32.1, gix-actor v0.24.1, gix-validate v0.7.7, gix-object v0.33.1, gix-path v0.8.4, gix-glob v0.10.1, gix-quote v0.4.6, gix-attributes v0.16.0, gix-command v0.2.8, gix-packetline-blocking v0.16.4, gix-filter v0.2.0, gix-fs v0.4.1, gix-chunk v0.4.4, gix-commitgraph v0.18.1, gix-hashtable v0.2.4, gix-revwalk v0.4.1, gix-traverse v0.30.1, gix-worktree-stream v0.2.0, gix-archive v0.2.0, gix-config-value v0.12.5, gix-tempfile v7.0.1, gix-utils v0.1.5, gix-lock v7.0.2, gix-ref v0.33.1, gix-sec v0.8.4, gix-prompt v0.5.4, gix-url v0.21.1, gix-credentials v0.17.1, gix-diff v0.33.1, gix-discover v0.22.1, gix-ignore v0.5.1, gix-bitmap v0.2.6, gix-index v0.21.1, gix-mailmap v0.16.1, gix-negotiate v0.5.1, gix-pack v0.40.1, gix-odb v0.50.1, gix-packetline v0.16.4, gix-transport v0.34.1, gix-protocol v0.36.1, gix-revision v0.18.1, gix-refspec v0.14.1, gix-worktree v0.23.0, gix v0.50.0, safety bump 5 crates (16295b5)
    • Release gix-date v0.7.1, gix-hash v0.11.4, gix-trace v0.1.3, gix-features v0.32.0, gix-actor v0.24.0, gix-validate v0.7.7, gix-object v0.33.0, gix-path v0.8.4, gix-glob v0.10.0, gix-quote v0.4.6, gix-attributes v0.15.0, gix-command v0.2.7, gix-packetline-blocking v0.16.3, gix-filter v0.1.0, gix-fs v0.4.0, gix-chunk v0.4.4, gix-commitgraph v0.18.0, gix-hashtable v0.2.4, gix-revwalk v0.4.0, gix-traverse v0.30.0, gix-worktree-stream v0.2.0, gix-archive v0.2.0, gix-config-value v0.12.4, gix-tempfile v7.0.1, gix-utils v0.1.5, gix-lock v7.0.2, gix-ref v0.33.0, gix-sec v0.8.4, gix-prompt v0.5.3, gix-url v0.21.0, gix-credentials v0.17.0, gix-diff v0.33.0, gix-discover v0.22.0, gix-ignore v0.5.0, gix-bitmap v0.2.6, gix-index v0.21.0, gix-mailmap v0.16.0, gix-negotiate v0.5.0, gix-pack v0.40.0, gix-odb v0.50.0, gix-packetline v0.16.4, gix-transport v0.34.0, gix-protocol v0.36.0, gix-revision v0.18.0, gix-refspec v0.14.0, gix-worktree v0.22.0, gix v0.49.1 (5cb3589)
    • Update changelogs prior to release (2fc66b5)
    • Update license field following SPDX 2.1 license expression standard (9064ea3)

0.8.3 (2023-06-29)

A maintenance release without user-facing changes.

Commit Statistics

  • 3 commits contributed to the release.
  • 6 days passed between releases.
  • 0 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-features v0.31.1, gix-path v0.8.3, gix v0.48.0 (9ca3464)
    • Prepare changelogs once more (4bf355a)
    • Adjust gix-trace to the latest version. (353df4b)

0.8.2 (2023-06-22)

Chore

  • Add clippy::redundant-closure-for-method-calls lint

New Features

  • provide basic tracing spans for common operations. This is just the beginning and more crates will integrate with it over time.

Commit Statistics

  • 8 commits contributed to the release over the course of 10 calendar days.
  • 15 days passed between releases.
  • 2 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-date v0.6.0, gix-hash v0.11.3, gix-trace v0.1.1, gix-features v0.31.0, gix-actor v0.22.0, gix-path v0.8.2, gix-glob v0.9.0, gix-quote v0.4.5, gix-attributes v0.14.0, gix-chunk v0.4.3, gix-commitgraph v0.17.0, gix-config-value v0.12.2, gix-fs v0.3.0, gix-tempfile v7.0.0, gix-utils v0.1.3, gix-lock v7.0.0, gix-validate v0.7.6, gix-object v0.31.0, gix-ref v0.31.0, gix-sec v0.8.2, gix-config v0.24.0, gix-command v0.2.6, gix-prompt v0.5.2, gix-url v0.20.0, gix-credentials v0.16.0, gix-diff v0.31.0, gix-discover v0.20.0, gix-hashtable v0.2.2, gix-ignore v0.4.0, gix-bitmap v0.2.5, gix-revwalk v0.2.0, gix-traverse v0.28.0, gix-index v0.19.0, gix-mailmap v0.14.0, gix-negotiate v0.3.0, gix-pack v0.38.0, gix-odb v0.48.0, gix-packetline v0.16.3, gix-transport v0.33.0, gix-protocol v0.34.0, gix-revision v0.16.0, gix-refspec v0.12.0, gix-worktree v0.20.0, gix v0.47.0, gitoxide-core v0.29.0, gitoxide v0.27.0, safety bump 30 crates (ea9f942)
    • Prepare changelogs prior to release (18b0a37)
    • Merge branch ‘corpus’ (aa16c8c)
    • Release gix-trace v0.1.0 (2ab69c6)
    • Change MSRV to 1.65 (4f635fc)
    • Provide basic tracing spans for common operations. (3cffa26)
    • Merge branch ‘help-874-redundant-closures’ (fe59956)
    • Add clippy::redundant-closure-for-method-calls lint (bcad5c2)

0.8.1 (2023-06-06)

A maintenance release without user-facing changes.

Commit Statistics

  • 7 commits contributed to the release over the course of 12 calendar days.
  • 40 days passed between releases.
  • 0 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-date v0.5.1, gix-hash v0.11.2, gix-features v0.30.0, gix-actor v0.21.0, gix-path v0.8.1, gix-glob v0.8.0, gix-quote v0.4.4, gix-attributes v0.13.0, gix-chunk v0.4.2, gix-commitgraph v0.16.0, gix-config-value v0.12.1, gix-fs v0.2.0, gix-tempfile v6.0.0, gix-utils v0.1.2, gix-lock v6.0.0, gix-validate v0.7.5, gix-object v0.30.0, gix-ref v0.30.0, gix-sec v0.8.1, gix-config v0.23.0, gix-command v0.2.5, gix-prompt v0.5.1, gix-url v0.19.0, gix-credentials v0.15.0, gix-diff v0.30.0, gix-discover v0.19.0, gix-hashtable v0.2.1, gix-ignore v0.3.0, gix-bitmap v0.2.4, gix-traverse v0.26.0, gix-index v0.17.0, gix-mailmap v0.13.0, gix-revision v0.15.0, gix-negotiate v0.2.0, gix-pack v0.36.0, gix-odb v0.46.0, gix-packetline v0.16.2, gix-transport v0.32.0, gix-protocol v0.33.0, gix-refspec v0.11.0, gix-worktree v0.18.0, gix v0.45.0, safety bump 29 crates (9a9fa96)
    • Prepare changelogs prior to release (8f15cec)
    • Merge branch ‘auto-clippy’ (dbf8aa1)
    • Merge branch ‘main’ into auto-clippy (3ef5c90)
    • Merge branch ‘blinxen/main’ (9375cd7)
    • Include custom clippy settings (b057500)
    • Include license files in all crates (facaaf6)

0.8.0 (2023-04-27)

A maintenance release without user-facing changes.

Changed (BREAKING)

  • Moved home_dir() to env::home_dir() and env_var() to env::var(). Please note that this change was previously and erroneously not declared as breaking.

Commit Statistics

  • 4 commits contributed to the release.
  • 1 commit was understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-path v0.8.0, gix-glob v0.7.0, gix-attributes v0.12.0, gix-config-value v0.12.0, gix-ref v0.29.0, gix-sec v0.8.0, gix-config v0.22.0, gix-prompt v0.5.0, gix-url v0.18.0, gix-credentials v0.14.0, gix-discover v0.18.0, gix-ignore v0.2.0, gix-pack v0.35.0, gix-odb v0.45.0, gix-transport v0.31.0, gix-protocol v0.32.0, gix-refspec v0.10.1, gix-worktree v0.17.0, gix v0.44.1 (7ebc9f7)
    • Prepare changelogs prior to release (0135158)
    • Bump gix-path v0.8.0, safety bump 20 crates (gix set to 0.44.1 manually) (43ebaf2)
    • Moved home_dir() to env::home_dir() and env_var() to env::var(). (94564df)

0.7.4 (2023-04-26)

YANKED due to accidental breaking changes.

New Features

  • add join_bstr_unix_pathsep(base, component). It's useful to have to avoid certain conversions to happen otherwise.
  • add xdg_config_home(), installation_configandinstallation_config_prefix()` functions.

Bug Fixes

  • join_bstr_unix_pathsep() works more suitably if base path is empty.
  • use home in env::home_dir()
  • use home in env::home_dir(). This way it should work better on windows as it now uses the home_dir implementation of a crate used by cargo.

Commit Statistics

  • 15 commits contributed to the release over the course of 13 calendar days.
  • 27 days passed between releases.
  • 5 commits were understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-hash v0.11.1, gix-path v0.7.4, gix-glob v0.6.0, gix-attributes v0.11.0, gix-config-value v0.11.0, gix-fs v0.1.1, gix-tempfile v5.0.3, gix-utils v0.1.1, gix-lock v5.0.1, gix-object v0.29.1, gix-ref v0.28.0, gix-sec v0.7.0, gix-config v0.21.0, gix-prompt v0.4.0, gix-url v0.17.0, gix-credentials v0.13.0, gix-diff v0.29.0, gix-discover v0.17.0, gix-hashtable v0.2.0, gix-ignore v0.1.0, gix-bitmap v0.2.3, gix-traverse v0.25.0, gix-index v0.16.0, gix-mailmap v0.12.0, gix-pack v0.34.0, gix-odb v0.44.0, gix-packetline v0.16.0, gix-transport v0.30.0, gix-protocol v0.31.0, gix-revision v0.13.0, gix-refspec v0.10.0, gix-worktree v0.16.0, gix v0.44.0, safety bump 7 crates (91134a1)
    • Prepare changelogs prior to release (30a1a71)
    • Merge branch ‘index-entries-attrs’ (f37a930)
    • join_bstr_unix_pathsep() works more suitably if base path is empty. (bd1ae0d)
    • Merge branch ‘attributes-cache’ (3456c84)
    • Add join_bstr_unix_pathsep(base, component). (1e73f3c)
    • Merge branch ‘utkarshgupta137/main’ (74cb5ee)
    • Use home in env::home_dir() (13edfe9)
    • Revert “fix: use home in env::home_dir().” (222ece2)
    • Merge branch ‘utkarshgupta137/main’ (5092c59)
    • Use home in env::home_dir(). (ec049fe)
    • Make fmt (5d2b5d0)
    • Merge branch ‘main’ into dev (23ee47f)
    • Merge branch ‘worktree-stack’ (3d47919)
    • Add xdg_config_home(), installation_configandinstallation_config_prefix() functions. ([0d340f4`](https://github.com/Byron/gitoxide/commit/0d340f4fdeff1576460d43ca2210b11f0641c5dd))

0.7.3 (2023-03-30)

Bug Fixes

  • $HOME detection on windows

Commit Statistics

  • 4 commits contributed to the release.
  • 37 days passed between releases.
  • 1 commit was understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-path v0.7.3, gix-config-value v0.10.2, gix-config v0.20.1, gix-discover v0.16.2, gix-index v0.15.1, gix-odb v0.43.1, gix-packetline v0.15.1, gix-protocol v0.30.2, gix-worktree v0.15.2, gix v0.43.1 (38eed1d)
    • Merge branch ‘pascalkuthe/main’ (d47cebe)
    • Refactor (d1e5e12)
    • $HOME detection on windows (d1bd513)

0.7.2 (2023-02-20)

Bug Fixes

  • note that crates have been renamed from git-* to gix-*. This also means that the git-* prefixed crates of the gitoxide project are effectively unmaintained. Use the crates with the gix-* prefix instead.

    If you were using git-repository, then gix is its substitute.

  • compatibility with bstr v1.3, use *.as_bytes() instead of .as_ref(). as_ref() relies on a known target type which isn‘t always present. However, once there is only one implementation, that’s no problem, but when that changes compilation fails due to ambiguity.

Commit Statistics

  • 2 commits contributed to the release.
  • 3 days passed between releases.
  • 1 commit was understood as conventional.
  • 0 issues like ‘(#ID)’ were seen in commit messages

Commit Details

  • Uncategorized
    • Release gix-date v0.4.3, gix-hash v0.10.3, gix-features v0.26.5, gix-actor v0.17.2, gix-glob v0.5.5, gix-path v0.7.2, gix-quote v0.4.2, gix-attributes v0.8.3, gix-validate v0.7.3, gix-object v0.26.2, gix-ref v0.24.1, gix-config v0.16.2, gix-command v0.2.4, gix-url v0.13.3, gix-credentials v0.9.2, gix-discover v0.13.1, gix-index v0.12.4, gix-mailmap v0.9.3, gix-pack v0.30.3, gix-packetline v0.14.3, gix-transport v0.25.6, gix-protocol v0.26.4, gix-revision v0.10.4, gix-refspec v0.7.3, gix-worktree v0.12.3, gix v0.36.1 (9604783)
    • Compatibility with bstr v1.3, use *.as_bytes() instead of .as_ref(). (135d317)

0.7.1 (2023-02-17)

Refactor (BREAKING)

  • Rename absolutize() to normalize() The name absolutize implies strongly that the returned path will be absolute, but the function only converts relative paths to absolute under a few specific circumstances.

    The new name, normalize(), is inspired by Python‘s os.path.normpath(), Java’s java.nio.file.Path.normalize(), Node's Path.normalize(), and maybe some others which have similar semantics to this function.

  • various name changes for more convenient API

Bug Fixes (BREAKING)

  • absolutize() now takes a mandatory current_dir() parameter and returns Option<path> Previously the function was willing to return an empty path despite it being invalid. With the current_dir being required, this won't be the case anymore and will yield logically consistent results in all cases.

    This forces the caller to deal with the relative path being invalid or crafted to produce some other path, maybe to bypass sanity checks.

  • Remove git-config test utilities from git-path.

New Features (BREAKING)

  • upgrade edition to 2021 in most crates. MSRV for this is 1.56, and we are now at 1.60 so should be compatible. This isn‘t more than a patch release as it should break nobody who is adhering to the MSRV, but let’s be careful and mark it breaking.

    Note that git-features and git-pack are still on edition 2018 as they make use of a workaround to support (safe) mutable access to non-overlapping entries in a slice which doesn't work anymore in edition 2021.

  • Make realpath() easier to use by introducing realpath_opt(). That way there is consistency about how many symlinks to follow.

Changed (BREAKING)

  • upgrade bstr to 1.0.1
  • realpath() handles cwd internally This makes for more convenient usage in the common case.

Refactor

  • rename tests/convert/normalize.rs This renames the test module to match the new function name.

Other

  • :discover()now returns the shortest path. If and only if it canonicalized the source path. That way, users will still get a familiar path. This is due toparent()not operating in the file system, which otherwise would be equivalent to..`, but that's not how we work.

    Maybe we should overhaul the way this works to use ../ instead and just ‘absoluteize’ the path later (std::path::absolute()) is on the way for that.

Bug Fixes

  • . substitution is only done if the input was relative. Previously it was possible to have /a/b/../b and a CWD of /a/b replaced with . even though that clearly isn't what the user provided.

    Now the . resubstitution only happens when it's in the interest of the caller.

  • normalize() would fail to interpret ../ correctly and end up in an invalid path. This is now fixed and should never happen again thanks to the addition of a missing test.

  • Handle . specifically in absolutize(). Previously, absolutizing ./../../ would lead to one path component of the ../ to be ignored as . was popped successfully, not realizing that it is a no-op.

    This could lead to problems with repository discovery if . was passed.

New Features

  • Add os_string_into_bstring() as sibling of os_str_into_bstr().

  • add support for wasi This allows path conversions there to be just as efficient as on unix.

    This was adopted from a PR in the hexlix-editor.

  • add is_absolute() for git-style absolute checks This essentially means that starting slashes are always absolute, even on windows.

  • Add absolutize_components() It helps to cleanup paths a little which comes in handy when dealing with commondir appended paths.

Chore

  • uniformize deny attributes
  • remove default link to cargo doc everywhere

Documentation

  • fix typos

Commit Statistics

  • 189 commits contributed to the release over the course of 296 calendar days.
  • 20 commits were understood as conventional.
  • 6 unique issues were worked on: #301, #331, #422, #450, #470, #691

Thanks Clippy

Clippy helped 5 times to make code idiomatic.

Commit Details

  • #301
  • #331
    • realpath() handles cwd internally (dfa1e05)
  • #422
  • #450
    • Upgrade bstr to 1.0.1 (99905ba)
    • Add is_absolute() for git-style absolute checks (f58a043)
  • #470
    • Update changelogs prior to release (caa7a1b)
    • Add support for wasi (523418f)
  • #691
  • Uncategorized
    • Release gix-features v0.26.4, gix-actor v0.17.1, gix-glob v0.5.3, gix-path v0.7.1, gix-quote v0.4.1, gix-attributes v0.8.2, gix-config-value v0.10.1, gix-tempfile v3.0.2, gix-lock v3.0.2, gix-validate v0.7.2, gix-object v0.26.1, gix-ref v0.24.0, gix-sec v0.6.2, gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 (6efd0d3)
    • Release gix-date v0.4.2, gix-hash v0.10.2, gix-features v0.26.4, gix-actor v0.17.1, gix-glob v0.5.3, gix-path v0.7.1, gix-quote v0.4.1, gix-attributes v0.8.2, gix-config-value v0.10.1, gix-tempfile v3.0.2, gix-lock v3.0.2, gix-validate v0.7.2, gix-object v0.26.1, gix-ref v0.24.0, gix-sec v0.6.2, gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 (6ccc88a)
    • Merge branch ‘rename-crates’ into inform-about-gix-rename (c9275b9)
    • Rename git-testtools to gix-testtools (b65c33d)
    • Adjust to renaming of git-pack to gix-pack (1ee81ad)
    • Adjust to renaming of git-odb to gix-odb (476e2ad)
    • Adjust to renaming of git-index to gix-index (86db5e0)
    • Adjust to renaming of git-diff to gix-diff (49a163e)
    • Adjust to renaming of git-commitgraph to gix-commitgraph (f1dd0a3)
    • Adjust to renaming of git-mailmap to gix-mailmap (2e28c56)
    • Adjust to renaming of git-discover to gix-discover (53adfe1)
    • Adjust to renaming of git-chunk to gix-chunk (59194e3)
    • Adjust to renaming of git-bitmap to gix-bitmap (75f2a07)
    • Adjust to renaming for git-protocol to gix-protocol (823795a)
    • Adjust to renaming of git-refspec to gix-refspec (c958802)
    • Adjust to renaming of git-revision to gix-revision (ee0ee84)
    • Adjust to renaming of git-transport to gix-transport (b2ccf71)
    • Adjust to renaming of git-credentials to gix-credentials (6b18abc)
    • Adjust to renaming of git-prompt to gix-prompt (6a4654e)
    • Adjust to renaming of git-command to gix-command (d26b8e0)
    • Adjust to renaming of git-packetline to gix-packetline (5cbd22c)
    • Adjust to renaming of git-worktree to gix-worktree (73a1282)
    • Adjust to renamining of git-worktree to gix-worktree (108bb1a)
    • Adjust to renaming of git-url to gix-url (b50817a)
    • Adjust to renaming of git-date to gix-date (9a79ff2)
    • Adjust to renaming of git-pathspec to gix-pathspec (37f7c6b)
    • Adjust to renamining of git-attributes to gix-attributes (4a8b3b8)
    • Adjust to renaminig of git-quote to gix-quote (648025b)
    • Adjust to renaming of git-config to gix-config (3a861c8)
    • Adjust to renaming of git-ref to gix-ref (1f5f695)
    • Adjust to renaming of git-lock to gix-lock (2028e78)
    • Adjust to renaming of git-tempfile to gix-tempfile (b6cc3eb)
    • Adjust to renaming of git-object to gix-object (fc86a1e)
    • Adjust to renaming of git-actor to gix-actor (4dc9b44)
    • Adjust to renaming of git-validate to gix-validate (5e40ad0)
    • Adjust to renaming of git-hash to gix-hash (4a9d025)
    • Adjust to renaming of git-features to gix-features (e2dd68a)
    • Adjust to renaming of git-glob to gix-glob (35b2a3a)
    • Adjust to renaming of git-sec to gix-sec (eabbb92)
    • Adapt to renaming of git-path to gix-path (d3bbcfc)
    • Rename git-path to gix-path (9fe8e83)
    • Adjust to rename of git-config-value to gix-config-value (622b3e1)
    • Merge branch ‘git-pack-wasm’ (4bc19d1)
    • CI validates WASM support (0d4b804)
    • Release git-date v0.4.2, git-hash v0.10.2, git-features v0.26.2, git-actor v0.17.1, git-glob v0.5.3, git-path v0.7.1, git-quote v0.4.1, git-attributes v0.8.2, git-config-value v0.10.1, git-tempfile v3.0.2, git-lock v3.0.2, git-validate v0.7.2, git-object v0.26.1, git-ref v0.24.0, git-sec v0.6.2, git-config v0.16.0, git-command v0.2.3, git-prompt v0.3.2, git-url v0.13.2, git-credentials v0.9.1, git-diff v0.26.1, git-discover v0.13.0, git-hashtable v0.1.1, git-bitmap v0.2.1, git-traverse v0.22.1, git-index v0.12.3, git-mailmap v0.9.2, git-chunk v0.4.1, git-pack v0.30.2, git-odb v0.40.2, git-packetline v0.14.2, git-transport v0.25.4, git-protocol v0.26.3, git-revision v0.10.2, git-refspec v0.7.2, git-worktree v0.12.2, git-repository v0.34.0, safety bump 3 crates (c196d20)
    • Prepare changelogs prior to release (7c846d2)
    • Merge branch ‘Lioness100/main’ (1e544e8)
    • Fix typos (39ed9ed)
    • Thanks clippy (bac57dd)
    • Release git-date v0.3.1, git-features v0.25.0, git-actor v0.15.0, git-glob v0.5.1, git-path v0.7.0, git-attributes v0.7.0, git-config-value v0.10.0, git-lock v3.0.1, git-validate v0.7.1, git-object v0.24.0, git-ref v0.21.0, git-sec v0.6.0, git-config v0.13.0, git-prompt v0.3.0, git-url v0.12.0, git-credentials v0.8.0, git-diff v0.24.0, git-discover v0.10.0, git-traverse v0.20.0, git-index v0.10.0, git-mailmap v0.7.0, git-pack v0.28.0, git-odb v0.38.0, git-packetline v0.14.1, git-transport v0.24.0, git-protocol v0.25.0, git-revision v0.8.0, git-refspec v0.5.0, git-worktree v0.10.0, git-repository v0.30.0, safety bump 26 crates (e6b9906)
    • Prepare chnagelogs prior to git-repository release (7114bbb)
    • Merge branch ‘main’ into read-split-index (c57bdde)
    • Merge branch ‘adjustments-for-cargo’ (083909b)
    • Thanks clippy (f1160fb)
    • Make fmt (747008d)
    • Merge branch ‘main’ into http-config (6b9632e)
    • Merge branch ‘discovery-fix’ (689752e)
    • . substitution is only done if the input was relative. (745d926)
    • normalize() would fail to interpret ../ correctly and end up in an invalid path. (92d5d13)
    • Merge branch ‘path-normalize’ (805329a)
    • Rename tests/convert/normalize.rs (8ab47bb)
    • Rename absolutize() to normalize() (37cab07)
    • Add os_string_into_bstring() as sibling of os_str_into_bstr(). (25e795f)
    • Merge branch ‘main’ into http-config (bcd9654)
    • Release git-hash v0.10.0, git-features v0.24.0, git-date v0.3.0, git-actor v0.14.0, git-glob v0.5.0, git-path v0.6.0, git-quote v0.4.0, git-attributes v0.6.0, git-config-value v0.9.0, git-tempfile v3.0.0, git-lock v3.0.0, git-validate v0.7.0, git-object v0.23.0, git-ref v0.20.0, git-sec v0.5.0, git-config v0.12.0, git-command v0.2.0, git-prompt v0.2.0, git-url v0.11.0, git-credentials v0.7.0, git-diff v0.23.0, git-discover v0.9.0, git-bitmap v0.2.0, git-traverse v0.19.0, git-index v0.9.0, git-mailmap v0.6.0, git-chunk v0.4.0, git-pack v0.27.0, git-odb v0.37.0, git-packetline v0.14.0, git-transport v0.23.0, git-protocol v0.24.0, git-revision v0.7.0, git-refspec v0.4.0, git-worktree v0.9.0, git-repository v0.29.0, git-commitgraph v0.11.0, gitoxide-core v0.21.0, gitoxide v0.19.0, safety bump 28 crates (b2c301e)
    • Prepare changelogs prior to release (e4648f8)
    • Merge branch ‘discover-rel-path’ (5f908fb)
    • Improve documentation to clarify intent (b8f73aa)
    • Merge branch ‘cwd-consistency’ (ea7c6a3)
    • Adapt to changes in git-discover and git-path and git-odb (98c2501)
    • absolutize() now takes a mandatory current_dir() parameter and returns Option<path> (7dbab1c)
    • Merge branch ‘version2021’ (0e4462d)
    • Upgrade edition to 2021 in most crates. (3d8fa8f)
    • Merge branch ‘diff’ (25a7726)
    • Release git-hash v0.9.10, git-features v0.22.5, git-date v0.2.0, git-actor v0.12.0, git-glob v0.4.0, git-path v0.5.0, git-quote v0.3.0, git-attributes v0.4.0, git-config-value v0.8.0, git-tempfile v2.0.5, git-validate v0.6.0, git-object v0.21.0, git-ref v0.16.0, git-sec v0.4.0, git-config v0.8.0, git-discover v0.5.0, git-traverse v0.17.0, git-index v0.5.0, git-worktree v0.5.0, git-testtools v0.9.0, git-command v0.1.0, git-prompt v0.1.0, git-url v0.9.0, git-credentials v0.5.0, git-diff v0.19.0, git-mailmap v0.4.0, git-chunk v0.3.2, git-pack v0.23.0, git-odb v0.33.0, git-packetline v0.13.0, git-transport v0.20.0, git-protocol v0.20.0, git-revision v0.5.0, git-refspec v0.2.0, git-repository v0.24.0, git-commitgraph v0.9.0, gitoxide-core v0.18.0, gitoxide v0.16.0, safety bump 28 crates (29a043b)
    • Merge branch ‘filter-refs’ (fd14489)
    • Merge branch ‘filter-refs-by-spec’ (5c05198)
    • Merge branch ‘main’ into index-from-tree (bc64b96)
    • Release git-path v0.4.2, git-config-value v0.7.0 (c48fb31)
    • Merge branch ‘main’ into filter-refs-by-spec (cfa1440)
    • Release git-path v0.4.1 (5e82346)
    • Handle . specifically in absolutize(). (9171adb)
    • Merge branch ‘main’ into remote-ls-refs (e2ee3de)
    • Merge branch ‘docsrs-show-features’ (31c2351)
    • Uniformize deny attributes (f7f136d)
    • Remove default link to cargo doc everywhere (533e887)
    • Merge pull request #2 from SidneyDouw/main (ce885ad)
    • Merge branch ‘Byron:main’ into main (9b9ea02)
    • Merge branch ‘main’ into rev-parse-delegate (6da8250)
    • Merge branch ‘main’ into pathspec (7b61506)
    • Release git-hash v0.9.6, git-features v0.22.0, git-date v0.0.2, git-actor v0.11.0, git-glob v0.3.1, git-path v0.4.0, git-attributes v0.3.0, git-tempfile v2.0.2, git-object v0.20.0, git-ref v0.15.0, git-sec v0.3.0, git-config v0.6.0, git-credentials v0.3.0, git-diff v0.17.0, git-discover v0.3.0, git-index v0.4.0, git-mailmap v0.3.0, git-traverse v0.16.0, git-pack v0.21.0, git-odb v0.31.0, git-url v0.7.0, git-transport v0.19.0, git-protocol v0.18.0, git-revision v0.3.0, git-worktree v0.4.0, git-repository v0.20.0, git-commitgraph v0.8.0, gitoxide-core v0.15.0, gitoxide v0.13.0, safety bump 22 crates (4737b1e)
    • Prepare changelog prior to release (3c50625)
    • Merge pull request #1 from Byron/main (085e76b)
    • Make fmt (0700b09)
    • Fix docs (4f8e3b1)
    • Thanks clippy (7a2a31e)
    • Merge branch ‘main’ into pathspec (89ea12b)
    • Merge branch ‘main’ into cont_include_if (0e9df36)
    • Generally avoid using target_os = "windows" in favor of cfg(windows) and negations (91d5402)
    • Use git_path::realpath in all places that allow it right now (229dc91)
    • Avoid unwraps in tests as they are now stable (efa1423)
    • Remove canonicalized-path abstraction (9496e55)
    • Merge branch ‘main’ into cont_include_if (41ea8ba)
    • Release git-path v0.3.0, safety bump 14 crates (400c9be)
    • Fix git-paths tests; improve error handling. (9c00504)
    • Docs for git-path (a520092)
    • Remove git-config test utilities from git-path. (c9933c0)
    • Release git-date v0.0.1, git-hash v0.9.5, git-features v0.21.1, git-actor v0.10.1, git-path v0.2.0, git-attributes v0.2.0, git-ref v0.14.0, git-sec v0.2.0, git-config v0.5.0, git-credentials v0.2.0, git-discover v0.2.0, git-pack v0.20.0, git-odb v0.30.0, git-url v0.6.0, git-transport v0.18.0, git-protocol v0.17.0, git-revision v0.2.1, git-worktree v0.3.0, git-repository v0.19.0, safety bump 13 crates (a417177)
    • Update changelogs prior to release (bb424f5)
    • Make fmt (c665aef)
    • Merge branch ‘main’ into svetli-n-cont_include_if (315c87e)
    • Make realpath() easier to use by introducing realpath_opt(). (266d437)
    • Merge branch ‘main’ into SidneyDouw-pathspec (a22b1d8)
    • Release git-path v0.1.3, git-discover v0.1.2, git-repository v0.18.1, cargo-smart-release v0.10.1 (b7399cc)
    • Prepare for smart-release release (2f74cb0)
    • Adjust git-path size limits (5ac8a3b)
    • Release git-path v0.1.2, git-sec v0.1.1, git-config v0.4.0, git-discover v0.1.1, git-pack v0.19.1, git-repository v0.18.0, cargo-smart-release v0.10.0, safety bump 2 crates (ceb6dff)
    • Merge branch ‘svetli-n-git_includeif’ (cf24fbe)
    • Remove forbid missing_docs (23acebb)
    • Merge branch ‘main’ into git_includeif (229d938)
    • Declare git-path usable (496594d)
    • Merge branch ‘main’ into git_includeif (598c853)
    • Release git-hash v0.9.4, git-features v0.21.0, git-actor v0.10.0, git-glob v0.3.0, git-path v0.1.1, git-attributes v0.1.0, git-sec v0.1.0, git-config v0.3.0, git-credentials v0.1.0, git-validate v0.5.4, git-object v0.19.0, git-diff v0.16.0, git-lock v2.1.0, git-ref v0.13.0, git-discover v0.1.0, git-index v0.3.0, git-mailmap v0.2.0, git-traverse v0.15.0, git-pack v0.19.0, git-odb v0.29.0, git-packetline v0.12.5, git-url v0.5.0, git-transport v0.17.0, git-protocol v0.16.0, git-revision v0.2.0, git-worktree v0.2.0, git-repository v0.17.0, safety bump 20 crates (654cf39)
    • Make fmt (e043807)
    • Fix create_symlink (714db70)
    • Add includeIf test with symlink. (5d74404)
    • Fix realpath tests. (0426f4d)
    • Refactor real_path tests. (b696849)
    • Refactor real_path tests. (8ade69f)
    • Fix windows (probably) (c980014)
    • Thanks clippy (da13aff)
    • Refactor (6bba054)
    • Turn recursion into loop (9b83c2c)
    • Refactor (1ca0540)
    • Refactor (1f6ecd2)
    • Refactor (5efb972)
    • Refactor (353c245)
    • Put realpath into its own module (d142e01)
    • Refactor (50583f0)
    • Rename real_path() to realpath() (478ff6c)
    • Refactor (8f1daf5)
    • Fix linux test (8a36810)
    • Fix windows test. (1afb2da)
    • Temp ignore real_path_tests. (c2f5db9)
    • Windows absolute path. (8dc33cc)
    • Windows absolute path. (070f8c7)
    • Windows absolute path. (cefc8fb)
    • Windows absolute path. (31a71f3)
    • Fix merge. (f2b46df)
    • Merge branch ‘main’ into git_includeif (b1bfc8f)
    • Add custom tempdir in. (8bfd52a)
    • Merge branch ‘basic-worktree-support’ (e058bda)
    • Thanks clippy (a084951)
    • Temp ignore real_path_tests. (27f4bfc)
    • Windows fix. (ce0b408)
    • Windows fix. (25dd319)
    • Windows fix. (61bc0e7)
    • Merge branch ‘main’ into git_includeif (05eb340)
    • Handle windows path prefix. (1723236)
    • Max symlinks exceeded test. (cfff300)
    • Use thiserror in real_path() (2bd7a44)
    • Input_path is Iterator. (c993d78)
    • Real_path wip (3890a61)
    • Merge branch ‘main’ into msrv-for-windows (7cb1972)
    • Make fmt (251b6df)
    • Merge branch ‘worktree-stack’ (98da8ba)
    • Release git-path v0.1.0 (ca019fc)

0.7.0 (2022-12-19)

New Features

  • Add os_string_into_bstring() as sibling of os_str_into_bstr().

Bug Fixes

  • . substitution is only done if the input was relative. Previously it was possible to have /a/b/../b and a CWD of /a/b replaced with . even though that clearly isn't what the user provided.

    Now the . resubstitution only happens when it's in the interest of the caller.

  • normalize() would fail to interpret ../ correctly and end up in an invalid path. This is now fixed and should never happen again thanks to the addition of a missing test.

Refactor

  • rename tests/convert/normalize.rs This renames the test module to match the new function name.

Refactor (BREAKING)

  • Rename absolutize() to normalize() The name absolutize implies strongly that the returned path will be absolute, but the function only converts relative paths to absolute under a few specific circumstances.

    The new name, normalize(), is inspired by Python‘s os.path.normpath(), Java’s java.nio.file.Path.normalize(), Node's Path.normalize(), and maybe some others which have similar semantics to this function.

0.6.0 (2022-11-21)

New Features (BREAKING)

  • upgrade edition to 2021 in most crates. MSRV for this is 1.56, and we are now at 1.60 so should be compatible. This isn‘t more than a patch release as it should break nobody who is adhering to the MSRV, but let’s be careful and mark it breaking.

    Note that gix-features and gix-pack are still on edition 2018 as they make use of a workaround to support (safe) mutable access to non-overlapping entries in a slice which doesn't work anymore in edition 2021.

Bug Fixes (BREAKING)

  • absolutize() now takes a mandatory current_dir() parameter and returns Option<path> Previously the function was willing to return an empty path despite it being invalid. With the current_dir being required, this won't be the case anymore and will yield logically consistent results in all cases.

    This forces the caller to deal with the relative path being invalid or crafted to produce some other path, maybe to bypass sanity checks.

0.5.0 (2022-09-20)

New Features

  • add support for wasi This allows path conversions there to be just as efficient as on unix.

    This was adopted from a PR in the hexlix-editor.

Changed (BREAKING)

  • upgrade bstr to 1.0.1

0.4.2 (2022-08-29)

New Features

  • add is_absolute() for git-style absolute checks This essentially means that starting slashes are always absolute, even on windows.

0.4.1 (2022-08-23)

Chore

  • uniformize deny attributes
  • remove default link to cargo doc everywhere

Bug Fixes

  • Handle . specifically in absolutize(). Previously, absolutizing ./../../ would lead to one path component of the ../ to be ignored as . was popped successfully, not realizing that it is a no-op.

    This could lead to problems with repository discovery if . was passed.

0.4.0 (2022-07-22)

Changed (BREAKING)

  • realpath() handles cwd internally This makes for more convenient usage in the common case.

0.3.0 (2022-06-19)

Bug Fixes (BREAKING)

  • Remove gix-config test utilities from gix-path.

0.2.0 (2022-06-13)

New Features (BREAKING)

  • Make realpath() easier to use by introducing realpath_opt(). That way there is consistency about how many symlinks to follow.

0.1.3 (2022-05-23)

A maintenance release without user-facing changes.

0.1.2 (2022-05-21)

A maintenance release without user-facing changes.

0.1.1 (2022-05-18)

New Features

  • Add absolutize_components() It helps to cleanup paths a little which comes in handy when dealing with commondir appended paths.

Other

  • :discover()now returns the shortest path. If and only if it canonicalized the source path. That way, users will still get a familiar path. This is due toparent()not operating in the file system, which otherwise would be equivalent to..`, but that's not how we work.

    Maybe we should overhaul the way this works to use ../ instead and just ‘absolutize’ the path later (std::path::absolute()) is on the way for that.

0.1.0 (2022-04-28)

Refactor (BREAKING)

  • various name changes for more convenient API

0.0.0 (2022-03-31)

An empty crate without any content to reserve the name for the gitoxide project.