From 11c71758d77c6b33c8803d506a8efbdf61a64867 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 29 Jul 2017 21:35:20 -0400 Subject: [PATCH] Defines git helpers for fuzzily adding and diffing files --- functions/git_functions.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/functions/git_functions.sh b/functions/git_functions.sh index 823c90de9..a30d88044 100644 --- a/functions/git_functions.sh +++ b/functions/git_functions.sh @@ -47,7 +47,15 @@ function git-discard { } -function git-list { +function wgd { + input=$1 + git diff "./**/*/${input}*" +} + + +function wga { + input=$1 + git add "./**/*/${input}*" }