1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! The client side of a push from a repository.
//!
//! The `push` feature gates this module. [`is_push_address`] tells an address
//! from the name of a remote section.
//! [`resolve_push`](crate::endpoint::resolve_push) returns the endpoint of a
//! configured remote or of an address.
//! [`Repo::push`](crate::Repo::push) and
//! [`Repo::push_over_stream`](crate::Repo::push_over_stream) push the commits
//! of a set of refspecs with the options of [`RepoPushOptions`].
//! [`Repo::push_onto`](crate::Repo::push_onto) and
//! [`Repo::push_onto_over_stream`](crate::Repo::push_onto_over_stream) push
//! the tree of a local commit, and the server commits it onto a branch with
//! the options of [`PushOntoOptions`].
//! [`Repo::export_stream`](crate::Repo::export_stream) writes the commits of a
//! set of ref updates as one one-way stream, with the options of
//! [`ExportStreamOptions`]. The private submodules read the refspecs of a push
//! against the local repository. They also give the objects of its commits to
//! a push session.
pub use ExportStreamOptions;
pub use RepoPushOptions;
pub use PushOntoOptions;
use crateError;
/// Returns `true` if `remote` is a push address: a value with a `:` or a `/`.
///
/// A value with no `:` and no `/` is the name of a remote section.
/// [`resolve_push`](crate::endpoint::resolve_push) reads no configuration for
/// an address, so a caller does not need to open the local repository.
/// Returns the error of a push request that the client refuses.
pub