Sebastian Thielthanks clippy581f8ae4 years agoHistory
38 lines · 970 B · Rust
RawDownload
/// The direction of an operation carried out (or to be carried out) through a remote.#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]pub enum Direction {    /// Push local changes to the remote.    Push,    /// Fetch changes from the remote to the local repository.    Fetch,} impl Direction {    /// Return ourselves as string suitable for use as verb in an english sentence.    pub fn as_str(&self) -> &'static str {        match self {            Direction::Push => "push",            Direction::Fetch => "fetch",        }    }} mod build; mod errors;pub use errors::find; ///pub mod init; ///#[cfg(any(feature = "async-network-client", feature = "blocking-network-client"))]pub mod connect; #[cfg(any(feature = "async-network-client", feature = "blocking-network-client"))]mod connection;#[cfg(any(feature = "async-network-client", feature = "blocking-network-client"))]pub use connection::Connection; mod access;pub(crate) mod url;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t