A visual git client, simple to use yet powerful. Light, fast and debloated.
Rust
feat: gitcraft 0.3.4 - whole-file diffs, copying from diffs, stashes in the graph, more languages
Ivána067383cb723
diff --git a/Cargo.lock b/Cargo.lockindex 280efe8..ed7fdc4 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1447,7 +1447,7 @@ dependencies = [[[package]]name = "gitcraft"-version = "0.3.3"+version = "0.3.4"dependencies = ["eframe","egui",diff --git a/Cargo.toml b/Cargo.tomlindex e73617a..a464464 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@[package]name = "gitcraft"-version = "0.3.3"+version = "0.3.4"edition = "2024"rust-version = "1.95"license = "MIT OR Apache-2.0"diff --git a/src/manual.rs b/src/manual.rsindex 430efaa..2aad2b5 100644--- a/src/manual.rs+++ b/src/manual.rs@@ -32,6 +32,7 @@ const FEATURES: &[(&str, &[&str])] = &["Right-click a commit or a pill for branches, tags, merge, rebase, cherry-pick, revert, reset and more.","Search messages, authors and hashes, or switch to Code to find the commits that added or removed some text.","Interactive rebase: reorder, reword, squash, fix up or drop commits, then start it.",+ "Stashes show in the graph as dashed boxes above the commit they were made on; click one to see it, right-click it to apply, pop or drop it.",],),(@@ -46,6 +47,7 @@ const FEATURES: &[(&str, &[&str])] = &[&["Stage, unstage or discard whole files from the right pane.","In a file's diff, stage, unstage or discard one hunk, or click the lines you want and act on only those.",+ "A diff shows only the changes or the whole file, unified or side by side, and remembers both. Drag over its lines to select text and Ctrl+C to copy it; the strip by the scrollbar marks where the changes are.","Write the summary and description and commit; amend the last commit; pick the identity you commit as.","Double-click a commit's message in the right pane to edit it (any commit of the checked-out branch with no merges after it).","Undo and redo commits, merges, rebases, resets, checkouts, branches, tags and stashes.",diff --git a/src/repo/diff.rs b/src/repo/diff.rsindex 75cabc7..5909c87 100644--- a/src/repo/diff.rs+++ b/src/repo/diff.rs@@ -612,7 +612,10 @@ impl RepoTab {DiffKey::Work(_) => (None, true),};widgets::file_menu(&title, &path, rev, ignorable, acts);- widgets::chip(ui, &origin, t.text_dim);+ // Lines picked bring their buttons, with no room left for the origin.+ if !(partial && chosen > 0) {+ widgets::chip(ui, &origin, t.text_dim);+ }ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {if icons::small_button(ui, "x", "Close (Esc)").clicked() {acts.push(Action::CloseDiff);