pub struct PushArgs {
pub remote: String,
pub args: Vec<String>,
pub dry_run: bool,
pub all: bool,
pub object_id: bool,
pub stdin: bool,
}Expand description
Push queued large files to the Git LFS endpoint
Upload Git LFS files to the configured endpoint for the current Git
remote. By default, filters out objects that are already referenced
by the local clone of the remote (approximated via
refs/remotes/<remote>/*); the server’s batch API dedupes again,
so a missing local tracking ref doesn’t waste bandwidth.
Fields§
§remote: StringRemote to push to (e.g. origin). The remote’s tracking refs
are excluded from the upload set so already-pushed objects
aren’t sent again.
args: Vec<String>Refs (or, with --object-id, raw OIDs) to push. With --all,
restricts the all-refs walk to these; with --stdin, ignored
(a warning is emitted).
dry_run: boolPrint the files that would be pushed, without actually pushing them.
all: boolPush all objects reachable from the refs given as arguments.
If no refs are provided, all local refs are pushed. Note this
behavior differs from git lfs fetch --all, which fetches
every ref including refs outside refs/heads / refs/tags. If
you’re migrating a repository, run git lfs push for any
additional remote refs that contain LFS objects not reachable
from your local refs.
object_id: boolPush only the object OIDs listed on the command line (or read
from stdin with --stdin), separated by spaces.
stdin: boolRead newline-delimited refs (or object IDs when using
--object-id) from standard input instead of the command
line.
Trait Implementations§
Source§impl Args for PushArgs
impl Args for PushArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PushArgs
impl FromArgMatches for PushArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.