From 4f9c58250669642732a276a1ada4c05934dfad11 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 15 Sep 2017 12:04:34 -0400 Subject: [PATCH] Add git helper functions --- functions/git_functions.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/functions/git_functions.sh b/functions/git_functions.sh index a30d88044..afbc16c70 100644 --- a/functions/git_functions.sh +++ b/functions/git_functions.sh @@ -4,6 +4,25 @@ function wgbranch { } +# edit git conflicts one-by-one +function vconflicts() { + $EDITOR $(git status --porcelain | awk '/^UU/ { print $2 }') +} + + +function git-tasks { + echo "fix - bug patching" + echo "refactor - changing structure; functionality remains unchanged" + echo "feat - introducing a new feature" + echo "style - updating UI / UX" + echo "chore - changing configuration, adding comments, etc" + echo "wip - placeholder tag signifying ongoing work" + echo "build - updating anything related to building and deploying" + echo "deps - updating related to project dependencies" + echo "docs - updating related to project documentation" +} + + function git-discard { option=$1