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

@ -5,6 +5,7 @@ mod buffer;
mod file;
pub mod git;
pub mod git_blame;
pub mod git_ignore;
pub mod git_lines;
pub mod git_log;
pub mod git_merge;
@ -78,6 +79,7 @@ pub fn register_builtins(registry: &mut Registry) -> Result<(), EngineError> {
git_remote::register(registry)?;
git_merge::register(registry)?;
git_stash::register(registry)?;
git_ignore::register(registry)?;
Ok(())
}
@ -91,6 +93,7 @@ pub(crate) const BUILTIN_COMMAND_IDS: &[&[&str]] = &[
file::COMMAND_IDS,
git::COMMAND_IDS,
git_blame::COMMAND_IDS,
git_ignore::COMMAND_IDS,
git_lines::COMMAND_IDS,
git_log::COMMAND_IDS,
git_merge::COMMAND_IDS,