@leverege/build-tools 2.11.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/dirty-git CHANGED
@@ -3,9 +3,10 @@
3
3
  CLEAN="\e[32m✔\e[0m"
4
4
  DIRTY="\e[31m✘\e[0m"
5
5
  STASH="\e[33;44m$\e[0m"
6
+ AHEAD="\e[34;42m!\e[0m"
6
7
 
7
8
  clear
8
- printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed\n\n"
9
+ printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed\n\n"
9
10
  for dir in $@;
10
11
  do
11
12
  [ ! -d $dir ] || [ ! -d $dir/.git ] && continue
@@ -14,6 +15,8 @@ do
14
15
  [[ `git status --porcelain` ]] && status="$DIRTY" || status="$CLEAN"
15
16
  scount=`git stash list | wc -l`
16
17
  [ $scount -gt 0 ] && stash="\e[33;44m$\e[0m" || stash=" "
18
+ ahead=`git rev-list FETCH_HEAD..HEAD --count`
19
+ [ $ahead -gt 0 ] && ahead="$AHEAD" || ahead=" "
17
20
  cd - &>/dev/null
18
- printf "${status} %-28s ${stash} %s\n" $dir $branch
21
+ printf "${status} %-28s ${stash}${ahead} %s\n" $dir $branch
19
22
  done