Changes v1 -> v2:
- Incorporate Eric's feedback
- Factor out an initial fix, needed before adding the tests
Changes v2 -> v3:
- Incorporate Junio's feedback
- Move tests from t3312 to t3301
- Refactor the display of empty notes (the part concerning
git-log) into a separate follow-up patch (#4)
- Add a final (optional) patch with some whitespace and other
cleanups in t3301. Feel free to drop this if it's too much
churn.
Have fun! :)
...Johan
Johan Herland (5):
builtin/notes: Fix premature failure when trying to add the empty blob
t3301: Verify that 'git notes' removes empty notes by default
builtin/notes: Add --allow-empty, to allow storing empty notes
notes: Empty notes should be shown by 'git log'
t3301: Use write_script(), nitpick whitespace
Documentation/git-notes.txt | 12 +-
builtin/notes.c | 25 ++--
notes.c | 3 +-
t/t3301-notes.sh | 301 +++++++++++++++++++++++++-------------------
4 files changed, 197 insertions(+), 144 deletions(-)