We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26286a commit 1a51a1dCopy full SHA for 1a51a1d
1 file changed
git/git_commits_range.sh
@@ -25,8 +25,10 @@ if [ -z "${HEAD}" ] || [ "${HEAD}" = "${ZERO}" ]; then
25
fi
26
27
if [ -z "${BEFOR}" ] || [ "${BEFOR}" = "${ZERO}" ]; then
28
+ git -C "${REPO}" cat-file -e "${HEAD}^{commit}" 2>/dev/null || exit 0
29
git -C "${REPO}" rev-list --max-count="${LIMIT}" --skip="${SKIP}" "${HEAD}"
30
else
31
32
+ git -C "${REPO}" cat-file -e "${BEFOR}^{commit}" 2>/dev/null || exit 0
33
git -C "${REPO}" rev-list --max-count="${LIMIT}" --skip="${SKIP}" "${BEFOR}..${HEAD}"
34
-
0 commit comments