Skip to content

Commit

Permalink
Merge branch 'changelog'
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 5, 2010
2 parents e36ef2f + 6f1a058 commit 32a413f
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
17 changes: 17 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

0.0.1 / 2010-08-05
==================

* Docs for git-ignore. Closes #3
* Merge branch 'ignore'
* Added git-ignore
* Readme typo
* Fixed <tag> in docs
* Install docs
* Merge branch 'release'
* Added git-release
* Fixed readme
* Readme
* Passing args to git shortlog
* Added --all support to git-count
* Initial commit
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PREFIX = /usr/local

BINS = bin/git-count \
bin/git-ignore \
bin/git-changelog \
bin/git-release

install:
Expand All @@ -11,6 +12,7 @@ install:
uninstall:
rm -f $(PREFIX)/bin/git-count
rm -f $(PREFIX)/bin/git-ignore
rm -f $(PREFIX)/bin/git-changelog
rm -f $(PREFIX)/bin/git-release

.PHONY: install uninstall
36 changes: 36 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,39 @@
... added 'build'
... added '*.o'
... added '*.log'

## git-changelog

Populates the file named matching _change|history -i_ with the commits
since the previous tag or since the project began when no tags are present. Opens the changelog in **$EDITOR** when set.

$ git changelog

n.n.n / 2010-08-05
==================

* Docs for git-ignore. Closes #3
* Merge branch 'ignore'
* Added git-ignore
* Fixed <tag> in docs
* Install docs
* Merge branch 'release'
* Added git-release
* Passing args to git shortlog
* Added --all support to git-count
* Initial commit

Listing commits:

$ git changelog --list

* Docs for git-ignore. Closes #3
* Merge branch 'ignore'
* Added git-ignore
* Fixed <tag> in docs
* Install docs
* Merge branch 'release'
* Added git-release
* Passing args to git shortlog
* Added --all support to git-count
* Initial commit
22 changes: 22 additions & 0 deletions bin/git-changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env sh

CHANGELOG=`ls | egrep 'change|history' -i`
DATE=`date +'%Y-%m-%d'`
HEAD="\nn.n.n / $DATE \n==================\n"

if test "$1" = "--list"; then
version=`git tag | tail -n 1`
if test -z "$version"; then
git log --pretty="format: * %s"
else
git log --pretty="format: * %s" $version..
fi
else
tmp="/tmp/changelog"
echo $HEAD > $tmp
git-changelog --list >> $tmp
echo '' >> $tmp
cat $CHANGELOG >> $tmp
mv $tmp $CHANGELOG
test -n "$EDITOR" && $EDITOR $CHANGELOG
fi

0 comments on commit 32a413f

Please sign in to comment.