Fixes for M-02 to M-14, G-01 to G-14, K-02 to K-04, X-04 to X-14, not yet reviewed
Committed before review so Windows and WSL builds can start. Each fix was tested and mutation-checked here; the codex review of each item is still to come, so tasks/BUGS.md stays unticked. M-02 is mid-review: round 1 findings are fixed (apps/ely-mark/src/tally.rs). K-01 stays deferred. The ElyMark window test mark-outside.sh failed once at its crash-recovery step in the last run; not yet looked into.
This commit is contained in:
75 files changed
+1482
-354
No files matched your search
@@ -28,7 +28,7 @@ fn branch(found: &Ref) -> Branch {
|
||||
ahead,
|
||||
behind,
|
||||
subject: found.subject.clone().into(),
|
||||
when: when(found.at),
|
||||
when: found.at.map_or_else(|| "—".into(), when),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ fn tag(found: &Ref) -> GitTag {
|
||||
name: found.name.clone().into(),
|
||||
message: found.message.clone().map(Into::into),
|
||||
commit: found.commit.clone().into(),
|
||||
when: when(found.at),
|
||||
when: found.at.map_or_else(|| "—".into(), when),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ pub fn branches(tree: &Entity<Tree>, cx: &mut Context<Changes>) -> AnyElement {
|
||||
}
|
||||
Some(Ok(refs)) => refs,
|
||||
};
|
||||
let picked = read.picked_ref.clone();
|
||||
let picked = opened.picked_ref.clone();
|
||||
// A name shows picked only in its own kind's list.
|
||||
let picked_in = move |kind: Kind| {
|
||||
picked
|
||||
@@ -72,7 +72,10 @@ pub fn branches(tree: &Entity<Tree>, cx: &mut Context<Changes>) -> AnyElement {
|
||||
move |name: &gpui::SharedString, _: &mut gpui::Window, cx: &mut gpui::App| {
|
||||
let name = name.to_string();
|
||||
this.update(cx, |tree, cx| {
|
||||
tree.picked_ref = Some((kind, name));
|
||||
tree.look = None;
|
||||
if let Some(opened) = tree.active.and_then(|id| tree.opened_mut(id)) {
|
||||
opened.picked_ref = Some((kind, name));
|
||||
}
|
||||
cx.notify();
|
||||
})
|
||||
.ok();
|
||||
|
||||
Reference in new issue
Block a user