From 2cc050cc136d5a6b3fb7ca79c4438f24b25da0fe Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 30 May 2024 00:08:57 -0700 Subject: [PATCH] assume unchanged aliases --- home/modules/git.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/modules/git.nix b/home/modules/git.nix index ed76f9d..2ca4a26 100644 --- a/home/modules/git.nix +++ b/home/modules/git.nix @@ -27,6 +27,11 @@ in type = "cat-file -t"; dump = "cat-file -p"; graph = "log --graph --decorate --pretty=oneline --abbrev-commit"; + + # local patch-wise ignore workflow + unchanged = "update-index --assume-unchanged"; + changed = "update-index --no-assume-unchanged"; + show-unchanged = ''!"git ls-files -v | sed -e 's/^[a-z] //p; d'\"'' }; extraConfig = {