mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Include --branch
et al when resolving unnamed URLs in uv add
(#7447)
## Summary Closes #7433.
This commit is contained in:
parent
424ee439d6
commit
d1c7cb8bc2
3 changed files with 259 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue