1625 lines · 140.9 KB · Markdown
RawDownload

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.15.0 (2022-07-22)

New Features

  • Add store::WriteRefLog::Always to unconditionally write reflogs.

Changed (BREAKING)

  • Target(Ref)?::try_name() now returns Option<&FullNameRef>. That way, the name is actually directly usable in most methods that require a validated name as input.

Commit Statistics

  • 10 commits contributed to the release over the course of 33 calendar days.
  • 39 days passed between releases.
  • 2 commits where understood as conventional.
  • 1 unique issue was worked on: #331

Thanks Clippy

Clippy helped 1 time to make code idiomatic.

Commit Details

view details
  • #331
    • Target(Ref)?::try_name() now returns Option<&FullNameRef>. (0f753e9)
    • Add store::WriteRefLog::Always to unconditionally write reflogs. (4607a18)
  • Uncategorized
    • prepare changelog prior to release (3c50625)
    • assure document-features are available in all 'usable' and 'early' crates (238581c)
    • Merge branch 'main' into cont_include_if (daa71c3)
    • Merge branch 'normalize-values' (4e8cc7a)
    • thanks clippy (e1003d5)
    • Merge branch 'main' into cont_include_if (0e9df36)
    • generally avoid using target_os = "windows" in favor of cfg(windows) and negations (91d5402)
    • Release git-path v0.3.0, safety bump 14 crates (400c9be)

0.14.0 (2022-06-13)

A maintenance release without user-facing changes.

Commit Statistics

  • 3 commits contributed to the release.
  • 25 days passed between releases.
  • 0 commits where understood as conventional.
  • 0 issues like '(#ID)' where seen in commit messages

Commit Details

view details
  • Uncategorized
    • 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)

0.13.0 (2022-05-18)

New Features

  • ref iteration for worktrees. It merges the iteration result of private worktree refs along with all shared common references references.
  • Category::LinkedRef With it one can access all refs as advertised.
  • Category::MainRef With it it will be possible to compute all paths correctly and actually perform certain operations as documented.
  • Category::(WorktreePrivate|Bisect|Rewritten)
  • Category::LinkedPseudoRef
  • Add Category::MainPseudoRef
  • Category::PseudoRef

Changed (BREAKING)

  • Transaction::commit(…) takes git-actor::SignatureRef instead of …::Signature. This makes the API more versatile and corrects a shortcoming that was caused by SignatureRef previously being unable to serialize itself.

  • remove FullName::to_ref() in favor of •::as_ref(). This became possible now that FullNameRef is a proper ref, not just ref-like.

  • rename PartialNameRef to PartialNameCow Because this is what it is, which also implies that it's not Copy anymore which a Ref would definitely be.

    The reason we need this to be a Cow is to support passing ownership.

  • remove Store from public API It is unclear if ref-tables, which are the reason for it to exist in the first place, will fit into the concept as they might not support worktrees. It's entirely unclear how this works.

    Maybe there can be a non-worktree version of the store with work-trees only being supported by the file based ref database, and ref-tables remaining a server-side feature.

  • rename file::Store::base() to git_dir(). That way it is clearer what it actually is especially in presence of the newly added file::Store::common_dir() method.

    That way, work-trees can eventually be properly supported.

New Features (BREAKING)

  • Turn FullNameRef into an actual reference type. That way Cow<'_, FullNameRef> works as expected.

Commit Statistics

  • 110 commits contributed to the release over the course of 42 calendar days.
  • 43 days passed between releases.
  • 13 commits where understood as conventional.
  • 4 unique issues were worked on: #298, #301, #384, #393

Thanks Clippy

Clippy helped 8 times to make code idiomatic.

Commit Details

view details
  • #298
    • Enforce path conversion on windows gnu, it doesn't seem to like slashes (4d55a8f)
    • mention that failing path when a ref-file couldn't be read (ecb539a)
  • #301
    • update changelogs prior to release (84cb256)
    • ref iteration for worktrees. (4a5176a)
    • down to one borrowcheck error (7571be5)
    • possibly a step towards solving this traversal… (c64a77f)
    • prepare for dual-iteration (200384c)
    • make a common-dir iterator available (78658c7)
    • refactor (5521391)
    • try all prefixes when producing a relative path for error purposes (8cf0302)
    • restore previous non-namespace test (ba17b40)
    • refactor (1b3a6da)
    • refactor (7777f7e)
    • represent loose iteration in terms of the overlay iterator (ad37a64)
    • start preparing for multi-loose ref iteration, but… (014459b)
    • validate traversal of main repository refs in presence of worktrees (f067286)
    • refactor (c2ac110)
    • simplify worktree test to not include superfluous refs (c46d838)
    • Assure proper handling of transactions in linked worktrees (07dc555)
    • Humble beginnings of transaction testing within worktrees (6f52606)
    • many more tests around transactions and prefix handling (8f3a4b5)
    • assure that private worktree refs have their reflogs written (96efbb1)
    • Properly adjust names for prefixed refs for use in packed-refs and filter them (797af14)
    • prepare for filtering soon to be packed refs by name (3cea2ad)
    • uncover issue naming of refs written to packed-refs (1acf875)
    • a first test of main worktree transactions incl. changelog (9c5ab38)
    • adjusts to changes in git-ref (b362fb5)
    • Transaction::commit(…) takes git-actor::SignatureRef instead of …::Signature. (3d6299f)
    • first rough step towards support iteration (b987575)
    • prepare for tests that can write into our test repositories (096ee5f)
    • improve reflog base generation in transactions so it could possibly work (d69b56e)
    • Improve conversions as much as possible (befe949)
    • validate that owned values indeed can't be passed anymore (c78008e)
    • Avoid using Cow at all in favor of a simple &PartialNameref (1bc9a87)
    • This didn't get better, but probably will stay that way (7da239f)
    • See what it means to use Cow<PartialNameRef> (2ae129a)
    • All custom TryFrom implementations for Cow (15afec1)
    • Cow support for PartialNameRef (3e470da)
    • adapt to changes in git-ref (21109ca)
    • remove FullName::to_ref() in favor of •::as_ref(). (f1dbb6b)
    • reflog handling for worktree/ ref-names (77877e0)
    • parse the worktree name as part of the cateogry (7666034)
    • refactor (cebf736)
    • more fixes for worktree ref handling (1aa546d)
    • better packed refs lookup for worktree refs (2b6982e)
    • fix bugs with name resolution (3031f99)
    • Assure main-worktree is also resolved in the main worktree (bc3c05e)
    • assure nobody can bypass the namespace anymore (0079ab6)
    • frame for tests in worktree and main repositories (b12884a)
    • Assure namespaces are respected when calculating bases (4aac3c2)
    • fix docs (e189914)
    • transactions fully rely on proper base (d3a12e3)
    • packed-refs now use correct common dir (dd7be18)
    • reflog paths are now computed according to their ref name (c4d2493)
    • refactor (e93c222)
    • first draft of fixture setup for worktrees (a25b0bc)
    • use suitable full names for store based packed-refs lookup too (d25b3ca)
    • packed-refs can now possibly transform names for lookup correctly (6478736)
    • Offer a way to search packed refs by full name only (ae57e27)
    • Also build what should be a valid path for loose-ref lookup (37deca5)
    • refactor (19d53fb)
    • refactor (32b8fde)
    • refactor (09eb432)
    • refactor (f83910f)
    • Loose ref lookup uses categories for refanames (61b449c)
    • prepare for switch to category based base-path lookup (14c6f48)
    • Unify pseudo-ref check for find reference (8c52fe4)
    • Admit that we need PartialPathCow and can't work around it (202bafc)
    • rename PartialNameRef to PartialNameCow (1611c3d)
    • refactor (4e26e62)
    • refactor (a611224)
    • refactor (467d583)
    • refactor (3574a4e)
    • Category::LinkedRef (9cccce3)
    • Category::MainRef (eada5df)
    • Category::(WorktreePrivate|Bisect|Rewritten) (0304b7f)
    • Category::LinkedPseudoRef (612a2db)
    • Add Category::MainPseudoRef (613b584)
    • Category::PseudoRef (6ccfea9)
    • remove Store from public API (8a92ec9)
    • rename file::Store::base() to git_dir(). (2becffc)
    • adapt to changes in git-path (cc2d810)
    • adapt to all changes in git-path with bstr support (f158648)
    • Use git-path crate instead of git_features::path (47e607d)
    • adjustments to go along with changes in git-features (c55cac6)
    • make fmt (50ff7aa)
  • #384
    • No need to isolate archives by crate name (19d46f3)
    • add archive files via git-lfs (7202a1c)
    • auto-set commit.gpgsign=false when executing git (c23feb6)
  • #393
    • Add support for disabling archive usage (624ad2e)
  • Uncategorized
    • Release 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 (349c590)
    • fix git-ref dependencies (633e571)
    • 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)
    • thanks clippy (4cff7a8)
    • thanks clippy (a20d282)
    • thanks clippy (c208912)
    • Merge branch 'main' into refs-and-worktrees (9cf0c7b)
    • Turn FullNameRef into an actual reference type. (0ace957)
    • A sketch to show how Cow could work (c6b2705)
    • thanks clippy (61d6d93)
    • thanks clippy (6291015)
    • thanks clippy (22ee920)
    • refactor (6149978)
    • thanks clippy (405d94d)
    • thanks clippy (a7ac64c)
    • Merge branch 'git_includeif' of https://github.com/svetli-n/gitoxide into svetli-n-git_includeif (0e01da7)
    • Merge branch 'mzr-fix_empty_values' (09c8628)
    • fix clippy - many false positives this time (045e6fa)
    • fix clippy - many false positives this time (099bd5b)

0.12.1 (2022-04-05)

Changed (BREAKING)

  • rename PartialNameRef to PartialNameCow Because this is what it is, which also implies that it's not Copy anymore which a Ref would definitely be.

    The reason we need this to be a Cow is to support passing ownership.

  • remove Store from public API It is unclear if ref-tables, which are the reason for it to exist in the first place, will fit into the concept as they might not support worktrees. It's entirely unclear how this works.

    Maybe there can be a non-worktree version of the store with work-trees only being supported by the file based ref database, and ref-tables remaining a server-side feature.

  • rename file::Store::base() to git_dir(). That way it is clearer what it actually is especially in presence of the newly added file::Store::common_dir() method.

    That way, work-trees can eventually be properly supported.

New Features

  • add FullName(Ref)::category_and_shortname() It's a combination of shorten() and category() for convenience.
  • Category::LinkedRef With it one can access all refs as advertised.
  • Category::MainRef With it it will be possible to compute all paths correctly and actually perform certain operations as documented.
  • Category::(WorktreePrivate|Bisect|Rewritten)
  • Category::LinkedPseudoRef
  • Add Category::MainPseudoRef
  • Category::PseudoRef

Commit Statistics

  • 3 commits contributed to the release over the course of 2 calendar days.
  • 2 days passed between releases.
  • 1 commit where understood as conventional.
  • 1 unique issue was worked on: #364

Commit Details

view details
  • #364
    • add FullName(Ref)::category_and_shortname() (ecd60d7)
  • Uncategorized
    • Release git-config v0.2.1, git-diff v0.15.0, git-traverse v0.14.0, git-pack v0.18.0, git-odb v0.28.0, git-ref v0.12.1, git-revision v0.1.0, git-repository v0.16.0, gitoxide-core v0.14.0, gitoxide v0.12.0, safety bump 6 crates (b612021)
    • refactor (2abedb8)

0.12.0 (2022-04-03)

New Features

  • Fullname(Ref)::category() and Category A way to classify references.
  • FullName(Ref)::strip_prefix() Get a short-hand for any reference name.
  • Add git_config::values::Path for a typesafe git path Add a Path type to the git_config::values which can be interpolated according to gits own path interpolation rules.
  • FullNameRef::file_name()
  • Display implementation for FullName.

Bug Fixes

  • support Rust 1.52

Changed (BREAKING)

  • Target::as_(id|name) -> Target::try_(id|name) Conform to naming conventions, whenever something returns an option or Result while there is a more direct name that panics, prefix try_.

Commit Statistics

  • 32 commits contributed to the release over the course of 68 calendar days.
  • 69 days passed between releases.
  • 5 commits where understood as conventional.
  • 6 unique issues were worked on: #298, #301, #329, #331, #333, #364

Thanks Clippy

Clippy helped 3 times to make code idiomatic.

Commit Details

view details
  • #298
    • Use hash_hasher based hash state for better keys/less collisions (814de07)
    • Display implementation for FullName. (cf50ae2)
  • #301
    • performance issue on windows is due to slow process execution speed (60bcffc)
    • speed up git-pack testing on windows (8ca400c)
  • #329
    • Document all features related to serde1 (72b97f2)
  • #331
    • Add git_config::values::Path for a typesafe git path (e4d6685)
  • #333
    • Use git_features::path everywhere where there is a path conversion (2e1437c)
    • remove os-str-bytes everywhere (71a086a)
    • Found one valid case for using os-str-bytes (9c294bf)
    • Make real clear panics are only possible on windows (6b283dc)
    • one usage of os_str_bytes down, along with some custom conversion code (1cc95ce)
    • gitoxide-core without os-str-bytes (909aa14)
    • Don't use os_str_ext in git-features; adapt git-ref (9258b7b)
    • Use new git-features::path module (7c53b27)
  • #364
    • Target::as_(id|name) -> Target::try_(id|name) (7984e19)
    • refactor (b1b9871)
    • Fullname(Ref)::category() and Category (e7e4ba2)
    • FullName(Ref)::strip_prefix() (af2d399)
    • Full error handling for CommitRefIter (b94471a)
  • Uncategorized
    • Release git-diff v0.14.0, git-bitmap v0.1.0, git-index v0.2.0, git-tempfile v2.0.1, git-lock v2.0.0, git-mailmap v0.1.0, git-traverse v0.13.0, git-pack v0.17.0, git-quote v0.2.0, git-odb v0.27.0, git-packetline v0.12.4, git-url v0.4.0, git-transport v0.16.0, git-protocol v0.15.0, git-ref v0.12.0, git-worktree v0.1.0, git-repository v0.15.0, cargo-smart-release v0.9.0, safety bump 5 crates (e58dc30)
    • Merge branch 'for-onefetch' (8e5cb65)
    • Release git-hash v0.9.3, git-features v0.20.0, git-config v0.2.0, safety bump 12 crates (f0cbb24)
    • Merge branch 'svetli-n-refactor_git_config_tests' (babaa9f)
    • thanks clippy (2066a80)
    • adapt to breaking changes in git-actor (40c48c3)
    • Release git-tempfile v2.0.0, safety bump 6 crates (90b1c42)
    • thanks clippy (a8e9497)
    • thanks clippy (f242a24)
    • Merge branch 'AP2008-implement-worktree' (f32c669)
    • Release git-actor v0.8.1 (08fe550)
    • Release git-hash v0.9.2, git-object v0.17.1, git-pack v0.16.1 (0db19b8)
    • Merge branch 'index-information' (025f157)

0.11.0 (2022-01-23)

New Features

  • FullNameRef::file_name()
  • Add file::Store::find_packed(…, buffer) This makes the API complete as now there is a methods that uses the internal buffer, or the provided one, where both can have its benefits.
  • add Reference::peel_to_id_in_place_packed() and Reference::follow_packed() This allows a stable/non-changing buffer to be used.

Bug Fixes

  • support Rust 1.52

Changed (BREAKING)

  • Required object_hash as parameter when instantiating any Store This is needed to choose the correct kind of object hash in a couple of situations, and future-proofs it for when ref-table arrives.
  • remove Target::must_exist() It was a remainder of an old API which since has been replaced with a more explicit approach.
  • remove pack-cache from Find::try_find(…) With the new architecture this can be an implementation detail without forcing it to be Sync.
  • move git_pack::data::Object to git_object::Data, massively alter git_odb::Find trait This will break a lot, but has to happen to prepare these traits for the next generation of object databases.

Commit Statistics

  • 27 commits contributed to the release over the course of 55 calendar days.
  • 55 days passed between releases.
  • 8 commits where understood as conventional.
  • 5 unique issues were worked on: #263, #266, #279, #293, #298

Thanks Clippy

Clippy helped 1 time to make code idiomatic.

Commit Details

view details
  • #263
    • Don't unnecessarily reload the packed-refs buffer under contention (3ab990e)
    • Use a read-lock until mutation is needed, instead of upgradable rw locks (58294dd)
    • refactor (e41ab82)
    • Add file::Store::find_packed(…, buffer) (f6181af)
    • add Reference::peel_to_id_in_place_packed() and Reference::follow_packed() (03bcac2)
  • #266
    • upgrade git-ref's os_str_bytes crate to 6.0.0 (0cfba57)
    • adapt to changes in git-odb (a44dd4b)
    • remove pack-cache from Find::try_find(…) (ebc7f47)
    • Clarify that we really need stable pack ids (cefc0fa)
    • move git_pack::data::Object to git_object::Data, massively alter git_odb::Find trait (2290d00)
  • #279
    • Adapt to changes in git-hash (754a663)
    • adjust to changes in git-hash (9bf25cc)
    • Required object_hash as parameter when instantiating any Store (dea6659)
    • remove Target::must_exist() (c46dec3)
    • adapt to changes in git-hash (3e75e8c)
  • #293
  • #298
    • FullNameRef::file_name() (28e3251)
  • Uncategorized
    • Release git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 (b286b24)
    • Release git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 (42ebb53)
    • Release git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 (1b76119)
    • Release git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 (8f57c29)
    • Release git-features v0.19.1, git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 (d78aab7)
    • Release git-hash v0.9.1, git-features v0.19.1, git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0, safety bump 4 crates (373cbc8)
    • prepar changelogs for cargo-smart-release release (8900d69)
    • support Rust 1.52 (42e0487)
    • Release git-bitmap v0.0.1, git-hash v0.9.0, git-features v0.19.0, git-index v0.1.0, safety bump 9 crates (4624725)
    • thanks clippy (7dd2313)

Lines 1–500 of 1625.