magit/magit — Issue #335: Can't commit when index is the same as HEAD
Author: pjweisberg
Created: 2012-01-14 00:30:14+00:00
State: open
Labels: bug

Here's the merge example I mentioned elsewhere:

```
git init
echo "I'm Bobb" > hello.txt
git add hello.txt
git commit -m 'Initial'
git checkout -b other
echo "I'm Bob" > hello.txt
git add hello.txt
git commit -m "Spelling fix"
git checkout master
echo "My name is Bob" > hello.txt
git add hello.txt
git commit -m "Reword + spelling"
git merge other
echo "My name is Bob" > hello.txt
git add hello.txt
```

So the commit I'm trying to make is the same as what I would get by using `--strategy=ours`, but assume I've done the merge manually because I needed to examine the other branch's changes before discarding them. At this point, `c` in the Magit status buffer does nothing, even though there's significant information to commit, because no files are changed.