Skip to content

Commit

Permalink
Implements #4 - Display short commit hash
Browse files Browse the repository at this point in the history
It seems useful to display the short hash and convey additional
info.
  • Loading branch information
metcalfc committed Apr 30, 2020
1 parent 7bce5cf commit 28b8c52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion dist/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 28b8c52

Please sign in to comment.