contrib / examples / git-log.shon commit diff.c: refactor parse_ws_error_highlight() (077965f)
   1#!/bin/sh
   2#
   3# Copyright (c) 2005 Linus Torvalds
   4#
   5
   6USAGE='[--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [git-rev-list options]'
   7SUBDIRECTORY_OK='Yes'
   8. git-sh-setup
   9
  10revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
  11[ "$revs" ] || {
  12        die "No HEAD ref"
  13}
  14git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
  15LESS=-S ${PAGER:-less}