diff options
author | William Carroll <wpcarro@gmail.com> | 2017-07-30T01·35-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-07-30T01·35-0400 |
commit | 11c71758d77c6b33c8803d506a8efbdf61a64867 (patch) | |
tree | d12f5ad743a316cfa71155e17528804fe3fb69cd /functions | |
parent | 4c5ea5a5b3989c6cd449be18e048e7d9162a56cf (diff) |
Defines git helpers for fuzzily adding and diffing files
Diffstat (limited to 'functions')
-rw-r--r-- | functions/git_functions.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/git_functions.sh b/functions/git_functions.sh index 823c90de9387..a30d88044b4e 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}*" } |