git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: "on for all" configuration of notes.rewriteRef

From
Jeff King <peff@peff.net>
Date
Sep 7, 2011, 21:35 UTC
Message-ID
<20110907213542.GA26388@sigill.intra.peff.net>
In-Reply-To
<201109072329.18338.trast@student.ethz.ch>
On Wed, Sep 07, 2011 at 11:29:17PM +0200, Thomas Rast wrote:
Show 12 quoted lines
> Admittedly I never considered the problem of supposedly-immutable
> notes here.  The whole point was to help users who had no idea that
> the string put there should probably start with refs/notes/.
> 
> So maybe the patch should instead say something along the lines of, to
> enable rewriting for the notes ref called foo, put refs/notes/foo --
> which to a core gitter of course sounds extremely redundant.
> 
> But what about the general issue of users who *have* put refs/notes/*,
> and then some software comes along that does not expect them to be
> rewritten?  Do we declare the software broken, or discourage from such
> blanket rewriting?

I think putting "refs/notes/*" is a perfectly reasonable thing from the user's perspective, and I'd hate to take away that convenience (and especially, I think in the long run, we'd like to have a hierarchy of notes that have rewriting turned on by default).

The cache code is probably what should be changed, then. It can move to "refs/cache", I guess, though I'm not too happy with that. The notes code assumes refs/notes in several places, and it's nice to be able to look at the cache trees with "--notes=cache/foo".

Maybe some way of saying "every notes tree gets rewriting, except ones in refs/notes/cache"?

Right now it's not a big problem. The only such immutable cache in a released version of git is the textconv cache, and it only contains blobs. Which, AFAIK, cannot be subject to rewriting. So we could put it off until another such cache comes along.

-Peff
Previous: Thomas RastNext: Michael Witten
Message 18 of 20 in “Lost association between TAGS and COMMITs when rebased a git(1) repository”
  1. John S. UrbanSep 4, 2011
  2. PJ WeisbergSep 4, 2011
  3. Michael WittenSep 4, 2011
  4. Michael WittenSep 4, 2011
  5. Philip OakleySep 4, 2011
  6. knittlSep 4, 2011
  7. knittlSep 4, 2011
  8. Michael WittenSep 4, 2011
  9. Jakub NarebskiSep 4, 2011
  10. Tor ArntsenSep 4, 2011
  11. Thomas RastSep 4, 2011
  12. Tor ArntsenSep 4, 2011
  13. John S. UrbanSep 4, 2011
  14. Documentation: "on for all" configuration of notes.rewriteRefThomas Rast, Sep 4, 2011
  15. Tor ArntsenSep 4, 2011
  16. Jeff KingSep 7, 2011
  17. Thomas RastSep 7, 2011
  18. Jeff KingSep 7, 2011
  19. Michael WittenSep 4, 2011
  20. John S. UrbanSep 4, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.