Thanks Jeff and Junio for all the comments. This is basically what you (and I) agree in v1's thread. The first patch is a new one, to avoid git-notes from converting everything to blobs. I don't restrict the "show" case either because git-notes uses "git show", which is capable of displaying all kinds of objects. Nguyễn Thái Ngọc Duy (4): notes: preserve object type given by "add -C" notes: "add -c" refuses to open an editor with non-blobs notes: refuse to edit non-blobs notes: refuse to append to non-blob notes builtin/notes.c | 21 +++++++++++++++------ t/t3301-notes.sh | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) -- 1.7.8.36.g69ee2 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html