Skip to content

Commit

Permalink
Colourize git-foreach dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jun 8, 2016
1 parent c2f2834 commit a870252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitconfig
Expand Up @@ -4,6 +4,7 @@
signingkey = 87C50701
[alias]
s = status --short --branch
pending = ! git branch | sed -E 's/[\\* ] (.+)$/\\1/' | grep '^chriso/'
lg = log -50 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
diff = diff --color
wd = diff --color-words
Expand Down
4 changes: 2 additions & 2 deletions bin/git-foreach
Expand Up @@ -11,8 +11,8 @@ list_repos() {
done
}

list_repos "$(pwd)" | while read REPO_DIR; do
echo $REPO_DIR
list_repos . | while read REPO_DIR; do
printf "\e[34m${REPO_DIR}\e[0m\n"
GIT_DIR="$REPO_DIR/.git" GIT_WORK_TREE="$REPO_DIR" git $@
echo
done

0 comments on commit a870252

Please sign in to comment.