From c9819e76c4e526f733b3d3cd1b695a6bd548c611 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Sat, 11 Apr 2026 15:59:02 +0100 Subject: git: add fmt alias --- home/.config/git/config | 1 + 1 file changed, 1 insertion(+) (limited to 'home/.config/git') diff --git a/home/.config/git/config b/home/.config/git/config index 9e538a6..58708fd 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -96,6 +96,7 @@ fa = fetch --all ff = merge --ff-only find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'" + fmt = clang-format -f fp = push --force-with-lease gone = !git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D l = log -- cgit v1.2.3-70-g09d2