X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=.gitconfig;h=74673ebc1a69274ad78e0ebb1ec5a508f9675d03;hb=fd4eaa6beacc9cebc388f98d9f7e842342cbec10;hp=4274c6f7acc52db3c24c4064fea18e632d80b836;hpb=1545fda4e3d9b4fd1a06e138ab61513a5633d02e;p=dotfiles.git diff --git a/.gitconfig b/.gitconfig index 4274c6f..74673eb 100644 --- a/.gitconfig +++ b/.gitconfig @@ -101,7 +101,14 @@ add-global-alias = "!exec git add-alias --global" add-local-alias = "!exec git add-alias --local" - tags = tag -n1 --list + # Last tag in the current branch + lasttag = describe --tags --abbrev=0 + + # Latest annotated tag in all branches + lasttagged = !git describe --tags `git rev-list --tags --max-count=1` + + # List all tags + tags = tag --list -n1 # Find text in any commit ever grep-all = !"f() { git rev-list --all | xargs git grep \"$@\"; }; f" @@ -123,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