From 28b8c52fcaf9f862764b3714aefedfa210eefae0 Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Thu, 30 Apr 2020 09:33:21 -0700 Subject: [PATCH] Implements #4 - Display short commit hash It seems useful to display the short hash and convey additional info. --- changelog.sh | 2 +- dist/changelog.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.sh b/changelog.sh index 4882240..a556d2c 100755 --- a/changelog.sh +++ b/changelog.sh @@ -13,5 +13,5 @@ git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* git fetch --prune --unshallow 1>&2 git log "${base_ref}...${head_ref}" \ - --pretty=format:"* [view commit](http://github.com/${repo_url}/commit/%H) - %s" \ + --pretty=format:"* [%h](http://github.com/${repo_url}/commit/%H) - %s" \ --reverse diff --git a/dist/changelog.sh b/dist/changelog.sh index 4882240..a556d2c 100755 --- a/dist/changelog.sh +++ b/dist/changelog.sh @@ -13,5 +13,5 @@ git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* git fetch --prune --unshallow 1>&2 git log "${base_ref}...${head_ref}" \ - --pretty=format:"* [view commit](http://github.com/${repo_url}/commit/%H) - %s" \ + --pretty=format:"* [%h](http://github.com/${repo_url}/commit/%H) - %s" \ --reverse