Git push/pull/fetch (#25445)
Release Notes: - N/A --------- Co-authored-by: Michael Sloan <mgsloan@gmail.com>
This commit is contained in:
co-authored by
Michael Sloan
parent
b1b6401ce7
commit
ff6844300e
@@ -946,12 +946,17 @@ impl WorktreeStore {
|
||||
upstream: proto_branch.upstream.map(|upstream| {
|
||||
git::repository::Upstream {
|
||||
ref_name: upstream.ref_name.into(),
|
||||
tracking: upstream.tracking.map(|tracking| {
|
||||
git::repository::UpstreamTracking {
|
||||
ahead: tracking.ahead as u32,
|
||||
behind: tracking.behind as u32,
|
||||
}
|
||||
}),
|
||||
tracking: upstream
|
||||
.tracking
|
||||
.map(|tracking| {
|
||||
git::repository::UpstreamTracking::Tracked(
|
||||
git::repository::UpstreamTrackingStatus {
|
||||
ahead: tracking.ahead as u32,
|
||||
behind: tracking.behind as u32,
|
||||
},
|
||||
)
|
||||
})
|
||||
.unwrap_or(git::repository::UpstreamTracking::Gone),
|
||||
}
|
||||
}),
|
||||
most_recent_commit: proto_branch.most_recent_commit.map(|commit| {
|
||||
|
||||
Reference in New Issue
Block a user