提交 4bc5fbf8 编写于 作者: L Linus Torvalds

Make "git log" exit properly if not in a git archive

Instead of getting an incomprehensible error message from git-rev-list.
上级 0ee19dce
#!/bin/sh
. git-sh-setup-script || die "Not a git archive"
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册