uv/crates/uv-git/src
Charlie Marsh dd3009ad84
Respect Git tags and branches that look like short commits (#2795)
## Summary

If we're given a Git reference like `20240222`, we currently treat it as
a short commit hash. However... it _could_ be a branch or a tag. This PR
improves the Git reference logic to ensure that ambiguous references
like `20240222` are handled appropriately, by attempting to extract it
as a branch, then a tag, then a short commit hash.

Closes https://github.com/astral-sh/uv/issues/2772.
2024-04-03 22:05:54 -04:00
..
util Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
git.rs Respect Git tags and branches that look like short commits (#2795) 2024-04-03 22:05:54 -04:00
known_hosts.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
lib.rs Respect Git tags and branches that look like short commits (#2795) 2024-04-03 22:05:54 -04:00
sha.rs Add an in-memory cache for Git references (#2682) 2024-03-27 01:39:01 +00:00
source.rs Preserve .git suffixes and casing in Git dependencies (#2789) 2024-04-03 00:24:29 +00:00