Skip to content

Commit 5979503

Browse files
committed
improve docs related to authentication when fetching
1 parent 0a2b135 commit 5979503

File tree

1 file changed

+4
-0
lines changed
  • git-repository/src/remote/connection

1 file changed

+4
-0
lines changed

git-repository/src/remote/connection/access.rs

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ impl<'a, 'repo, T, P> Connection<'a, 'repo, T, P> {
1212
/// user.
1313
///
1414
/// A custom function may also be used to prevent accessing resources with authentication.
15+
///
16+
/// Use the [configured_credentials()][Connection::configured_credentials()] method to obtain the implementation
17+
/// that would otherwise be used, which can be useful to proxy the default configuration and obtain information about the
18+
/// URLs to authenticate with.
1519
pub fn with_credentials(
1620
mut self,
1721
helper: impl FnMut(git_credentials::helper::Action) -> git_credentials::protocol::Result + 'a,

0 commit comments

Comments
 (0)