contrib / examples / git-log.shon commit Merge branch 'jh/send-email-one-cc' into maint (71da2fb)
   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}