From: Oleg Broytman Date: Wed, 9 Nov 2016 17:06:43 +0000 (+0300) Subject: .gitconfig: add (un)assume aliases X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fd4eaa6beacc9cebc388f98d9f7e842342cbec10;p=dotfiles.git .gitconfig: add (un)assume aliases --- diff --git a/.gitconfig b/.gitconfig index 61b2d13..74673eb 100644 --- a/.gitconfig +++ b/.gitconfig @@ -130,6 +130,12 @@ # Get the current branch name branch-name = rev-parse --abbrev-ref HEAD + assume = update-index --assume-unchanged + unassume = update-index --no-assume-unchanged + # assume-all = "!git st -s | awk {'print $2'} | xargs git assume" + unassume-all = "!git assumed | xargs git update-index --no-assume-unchanged" + assumed = !"git ls-files -v | grep ^h | cut -c 3-" + branches = branch --all ca = commit --all cv = commit --verbose