Permalink
Browse files

Added id to subject in git-weblog to be used as anchors

  • Loading branch information...
1 parent 539c944 commit 56bd7a38e4612ccf168d7d4c4c3731556445004a @mikegerwitz committed Jan 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/git-weblog
View
@@ -17,7 +17,7 @@
# #
# defaults
-format_subject='<h3 class="git-commit">%s</h3>
+format_subject='<h3 id="commit-%h" class="git-commit">%s</h3>
<div class="git-commit-author">%an</div>
<div class="git-commit-date">%ad</div>'
@@ -57,6 +57,7 @@ get-part-tag()
out=${fmt//%s/$subject}
out=${out//%an/$author}
out=${out//%ad/$date}
+ out=${out//%h/$commit}
out=${out//%n/$'\n'}
echo "$out"

0 comments on commit 56bd7a3

Please sign in to comment.