A3: add untracked files to .gitignore from the Changes context menu

git.ignore appends one anchored, escaped literal pattern per path to the
work tree root's .gitignore, skipping patterns already there. The Changes
window gets a row context menu (right click, Shift+F10, context-menu key)
with Open and Add to .gitignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-10-31 14:33:42 +01:00
parent ce681871ad
commit 68599fa2ac
14 changed files with 633 additions and 5 deletions

View file

@ -12,6 +12,8 @@
//! git's credential helper and the ssh agent (see `remote.rs`).
//! - Blame (M4.7): who last changed each line, of the working copy or an
//! editor buffer (`blame.rs`).
//! - Ignoring files (C7 A3): literal patterns appended to `.gitignore`
//! (`ignore.rs`).
//! - [`RepoWatch`] notices changes inside `.git` (HEAD, index, refs).
//!
//! Every call goes through [`runner::run`]: arguments as an array, never a
@ -25,6 +27,7 @@
pub mod blame;
mod error;
mod ignore;
pub mod log;
pub mod porcelain;
mod remote;
@ -35,6 +38,7 @@ mod watch;
pub use blame::{BlameLine, UNCOMMITTED_AUTHOR, is_uncommitted};
pub use error::VcsError;
pub use ignore::ignore_pattern;
pub use log::{CommitDetails, CommitFile, LOG_LIMIT, LogCommit, LogQuery};
pub use porcelain::{FileState, FileStatus, Head, Status, Version};
pub use remote::{