Merge branch 'mh/notes-allow-reading-treeish'
commitb4e8e0ed2deb552ca17206c9c1c2fb099e5df97a
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:21 +0000 (20 11:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:21 +0000 (20 11:43 -0800)
treef37be1fcf9c09642123fe7333f1d5c02a79d62c7
parentfc10eb5b87a75af2cb93a3932897572f2c544915
parentee76f92fe883305c1260952f5b325b0503311fc9
Merge branch 'mh/notes-allow-reading-treeish'

Some "git notes" operations, e.g. "git log --notes=<note>", should
be able to read notes from any tree-ish that is shaped like a notes
tree, but the notes infrastructure required that the argument must
be a ref under refs/notes/.  Loosen it to require a valid ref only
when the operation would update the notes (in which case we must
have a place to store the updated notes tree, iow, a ref).

* mh/notes-allow-reading-treeish:
  notes: allow treeish expressions as notes ref