github GitoxideLabs/gitoxide git-discover-v0.4.0
git-discover v0.4.0

2 years ago

New Features

  • add is_submodule_git_dir()
  • is_git() now detects submodule worktrees correctly.
  • git_discover::is_git() can detect submodule dirs correctly enough.
    We currently detect them as possibly bare, which could be improved if we
    allow ourselves to see .git/modules as submodule always.

Changed (BREAKING)

  • Provide more details when classifying submodule directories.
    That way we can avoid feeding .git files to git-repository::open()
    and avoid work duplication, which ultimately allows to open submodules
    directories of all kinds.

Commit Statistics

  • 19 commits contributed to the release over the course of 25 calendar days.
  • 26 days passed between releases.
  • 4 commits where understood as conventional.
  • 2 unique issues were worked on: #427, #482

Thanks Clippy

Clippy helped 1 time to make code idiomatic.

Commit Details

view details
  • #427
  • #482
    • add is_submodule_git_dir() (2e015a3)
    • Query the cwd only once instead of potentially multiple times, allocating a Vec each time. (6be38f2)
    • Provide more details when classifying submodule directories. (1b0ef18)
    • fix windows build (ff488fa)
    • fix docs (3724f31)
    • is_git() now detects submodule worktrees correctly. (4a3e1cf)
    • refactor (1ee9918)
    • git_discover::is_git() can detect submodule dirs correctly enough. (aa6fd97)
    • another test indicating git-discover misclassifies .git/modules as worktree (9133141)
    • Failing test to show discovery skips submodules entirely (b56b57c)
  • Uncategorized
    • prepare changelogs prior to reelase (c06ae1c)
    • thanks clippy (2135fb8)
    • Release git-hash v0.9.7, git-features v0.22.1 (232784a)
    • Merge branch 'write-index-files' into write-index-v2 (cddc2ca)
    • Merge branch 'write-index-files' into rev-parse-delegate (370110d)
    • Merge branch 'main' into rev-parse-delegate (4ae2bed)
    • Merge branch 'main' into rev-parse-delegate (6da8250)
    • make fmt (47724c0)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.