Include --branch et al when resolving unnamed URLs in uv add (#7447)

## Summary

Closes #7433.
This commit is contained in:
Charlie Marsh 2024-09-16 22:21:42 -04:00 committed by GitHub
parent 424ee439d6
commit d1c7cb8bc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 259 additions and 15 deletions

View file

@ -60,6 +60,13 @@ impl GitUrl {
self
}
/// Set the [`GitReference`] to use for this Git URL.
#[must_use]
pub fn with_reference(mut self, reference: GitReference) -> Self {
self.reference = reference;
self
}
/// Return the [`Url`] of the Git repository.
pub fn repository(&self) -> &Url {
&self.repository