mattsears/gaga — pull request #5 by nreckart (2011-12-02 22:19:49+00:00)
Title: Stop creating empty commits when saving duplicate values.

The following scenario will create three commits, two of which will be empty because no actual changes being made.

```ruby
store = Gaga.new(:repo => '/path/to/repo')

store['test'] = 'value'
store['test'] = 'value'
store['test'] = 'value'

```

You won't see the commits with gaga.log('test'), but if you actually take a look at all logs in the git repo directly, you'll see them there.

My fix just checks the value in Gaga.set and doesn't do anything if the value hasn't changed. There's probably a better, more sophisticated way to solve the problem, but my git/grit wizardry seems to be lacking today.