]> git.ipfire.org Git - thirdparty/git.git/blame - git-log-script
[PATCH] Update documentation for git-get-tar-commit-id
[thirdparty/git.git] / git-log-script
CommitLineData
e764b8e8 1#!/bin/sh
6e7722e6
JH
2#
3# Copyright (c) 2005 Linus Torvalds
4#
5
6# This one uses only subdirectory-aware commands, so no need to
7# include sh-setup-script.
8
ff84d327 9revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
6e7722e6
JH
10[ "$revs" ] || {
11 echo >&2 "No HEAD ref"
12 exit 1
13}
14git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
15LESS=-S ${PAGER:-less}