3 # Show refs and their recent commits.
6 . git-sh-setup-script || die
"Not a git repository"
9 die
"usage: $0 <ref>..."
12 headref
=`readlink $GIT_DIR/HEAD`
14 case "$(git-rev-parse --no-revs)" in '') ;; *) usage
;; esac
15 revs
=$
(git-rev-parse
--revs-only --symbolic --no-flags "$@")
16 flags
=$
(git-rev-parse
--revs-only --flags "$@")
19 revs
=$
(git-rev-parse
--symbolic --all |
sed -ne 's|^refs/heads/||p' |
33 h
=`git-rev-parse --verify "$ref^0" 2>/dev/null` ||
continue
34 l
=`git-log-script --max-count=1 --pretty=oneline "$h" |
37 echo "$in$H [$ref] $l"
43 git-rev-list
--pretty=oneline
$flags $@ |
49 b
=`git-merge-base $h $v`