From 71f5026d551cca9314a9f83b9c578ae2ad88169d Mon Sep 17 00:00:00 2001 From: Noah <35386821+nmay231@users.noreply.github.com> Date: Mon, 30 May 2022 13:55:29 -0600 Subject: [PATCH] Update README.md Show how to pass arguments to `git diff` in the git alias. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 58b7295..58e0f47 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ git diff | dunk or add it to git as an alias: ``` -git config --global alias.dunk '!git diff | dunk' +git config --global alias.dunk '!a() { git diff $@ | dunk; } ; a' +git dunk HEAD~1 ``` ### Paging