From 43b00922a945a8a91977b72417c151eba23a15d2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 16 Mar 2016 02:36:16 +0300 Subject: [PATCH] .gitconfig: use function instead of subshell Shell functions are more efficient than calling a new shell. --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 3ec2ca0..9301b8e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -19,7 +19,7 @@ lr5 = log --decorate --reverse -5 null-merge = merge --strategy=ours remotes = remote -v - ri = "!sh -c 'git rebase --interactive --autosquash --preserve-merges ${1:-\"@{u\\}\"}' -" + ri = "!f() { git rebase --interactive --autosquash --preserve-merges ${1:-\"@{u\\}\"}; }; f" #root = !pwd root = rev-parse --show-toplevel st = status --short -- 2.39.5