Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show git l for master again

  • Loading branch information...
commit 2f8d6f8c00ee523af6542bab53086f09af98c806 1 parent 287abea
@lennartcl authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 git-l
View
5 git-l
@@ -18,7 +18,10 @@ else
LOG=`git log --oneline --first-parent origin/master..$BRANCH "$@" | head -n 21`
fi
-if [ "$LOG" == "" ] && echo $BRANCH | grep -iE '^(master|origin/master)$' >/dev/null; then
+if [ "$LOG" == "" ] &&
+ (echo $BRANCH | grep -iE '^(master|origin/master)$' >/dev/null ||
+ (echo $BRANCH | grep -iE '^HEAD$' >/dev/null && [ "`git-get-branch 2>/dev/null`" == "master" ]))
+then
LOG=`git log --oneline --first-parent $BRANCH "$@" | head -n 21`
fi
Please sign in to comment.
Something went wrong with that request. Please try again.