Created
March 14, 2012 15:37
-
-
Save natecavanaugh/2037331 to your computer and use it in GitHub Desktop.
Command to commit gallery modules with tickets in those modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in `find . -type d -name "gallery-aui-*"`; do auiPath="${d/gallery-/}"; tickets=`git --git-dir="$NC_ALLOY_PATH/.git" log --oneline --since="January 17, 2011" -- "src/$auiPath" | grep -oE "AUI-[[:digit:]]+" | sort | uniq | tr '\n' ',' | sed 's/,$//; s/,/, /g'`; msg="Adding $d"; [[ -n $tickets ]] && msg="$tickets"; echo && echo $auiPath && echo "----------" && echo $msg && git add "$d" && git commit -m "$msg"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment