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

Re: Comment on weak refs

From
Pierre Habouzit <madcoder@debian.org>
Date
Jun 10, 2007, 14:09 UTC
Message-ID
<20070610140859.GB6730@artemis.madism.org>
In-Reply-To
<200706101541.44362.johan@herland.net>
  Sorry for the noise, but I'm really pissed with git@vger recently.
That mail I'm answering to, never made it to the list. Neither did my
quite long answer to Martin, who kindly forwared it back to me so that I
can send it again, sadly git@vger just does not wants mail, whereas its
SMTP seems to accept mail:
  Jun 10 16:02:09 pan postfix/smtp[20560]: DE84FCAD9: to=<git@vger.kernel.org>, relay=vger.kernel.org[209.132.176.167]:25, delay=4, delays=0.31/0.02/0.5/3.1, dsn=2.7.0, status=sent (250 2.7.0 nothing apparently wrong in the message. BF:<H 0.0800319>; S1754569AbXFJOCJ)
  I've sent a mail to postmaster@vger.kernel.org a week ago, but it
seems it remained a dead letter. Is anyone able to tell what's going
wrong ? it's _really_ irritating, and let me want to give up
discussions, as I _hate_ losing mail (I usually don't keep a copy of
mails I send to a mail list as I expect it to send it back to me, and
well, what would be a copy worth if nobody can read the mail anyway ?).
  So if anyone knows what can be done ....
On Sun, Jun 10, 2007 at 03:41:44PM +0200, Johan Herland wrote:
Show 58 quoted lines
> On Sunday 10 June 2007, Johannes Schindelin wrote:
> > On Sun, 10 Jun 2007, Johan Herland wrote:
> > > On Sunday 10 June 2007, Junio C Hamano wrote:
> > Has my lightweight annotation patch reached you?
> > 
> > I like my approach better than yours, because it is
> > 
> > 1) a way, way smaller patch, and
> > 2) it automatically includes the versionability.
> 
> I see your point, but your lightweight annotations are solving a different 
> problem, aren't they? They do provide the after-the-fact annotations that 
> sort of sparked of these discussions, but I can't see how your patch is a 
> replacement of the general "relationships between arbitrary objects" 
> concept that softrefs try to solve.
> 
> Of course, it might be that the lightweight annotations are "good enough" 
> for the use cases we currently see, and that softrefs are a bit overkill. 
> We'll just have to see what features people (like Pierre) really need.
> 
> > After thinking about it a little more (my plane was slow, and as a result 
> > I am allowed to spend 8 more hours in Paris), I think that a small but 
> > crucial change would make this thing even more useful:
> > 
> > Instead of having "core.showAnnotations" be a boolean config, it might be 
> > better to have "core.annotationsRef" instead, overrideable by the 
> > environment variable GIT_ANNOTATION_REF.
> > 
> > With this, you can have different refs for different kinds of annotations.
> > 
> > For example, some people might add bugtracker comments (even comments like 
> > "this commit was bad: introduced bug #798, solved by commit 9899fdadc.."). 
> > Those comments could live in refs/annotations/bugs. To see them, just say 
> > 
> > 	GIT_ANNOTATION_REF=refs/annotations/bugs gitk
> > 
> > Voila.
> 
> Nice. Something similar should be possible to do with softrefs as well.
> 
> > I am quite certain that treating annotations as branches, containing 
> > fan-out directories for the reverse lookup. I am even quite certain that 
> > in most cases, a working-directory-less merging is possible for such 
> > annotations.
> 
> I'm not convinced about the working-directory-less merging. AFAICS the 
> lightweight annotations will behave pretty much like the "regular" version 
> controlled filesystem, and you'll have the same kind of conflicts when you 
> merge stuff between repos. I'd be glad to be proven wrong, of course.
> 
> 
> Have fun!
> 
> ....Johan
> 
> -- 
> Johan Herland, <johan@herland.net>
> www.herland.net
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Previous: Johan HerlandNext: Pierre Habouzit
Message 44 of 52 in “Refactoring the tag object; Introducing soft references (softrefs); Git 'notes' (take 2)”
  1. Johan HerlandJun 4, 2007
  2. 0/6 Refactor the tag objectJohan Herland, Jun 4, 2007
  3. 1/6 Refactor git tag objects; make "tag" header optional; introduce new optional "keywords" headerJohan Herland, Jun 4, 2007
  4. Matthias LederhoferJun 4, 2007
  5. Johan HerlandJun 4, 2007
  6. 2/6 git-show: When showing tag objects with no tag name, show tag object's SHA1 instead of an empty stringJohan Herland, Jun 4, 2007
  7. 3/6 git-fsck: Do thorough verification of tag objects.Johan Herland, Jun 4, 2007
  8. Matthias LederhoferJun 4, 2007
  9. Johan HerlandJun 4, 2007
  10. Junio C HamanoJun 6, 2007
  11. 3/6 git-fsck: Do thorough verification of tag objects.Johan Herland, Jun 6, 2007
  12. Junio C HamanoJun 6, 2007
  13. Junio C HamanoJun 6, 2007
  14. Johan HerlandJun 6, 2007
  15. Junio C HamanoJun 6, 2007
  16. 4/6 Documentation/git-mktag: Document the changes in tag object structureJohan Herland, Jun 4, 2007
  17. 5/6 git-mktag tests: Fix and expand the mktag tests according to the new tag object structureJohan Herland, Jun 4, 2007
  18. 6/6 Add fsck_verify_ref_to_tag_object() to verify that refname matches name stored in tag objectJohan Herland, Jun 4, 2007
  19. Junio C HamanoJun 4, 2007
  20. Fix bug in tag parsing when thorough verification was in effectJohan Herland, Jun 7, 2007
  21. 0/7 Introduce soft references (softrefs)Johan Herland, Jun 9, 2007
  22. 1/7 Softrefs: Add softrefs header file with API documentationJohan Herland, Jun 9, 2007
  23. Johannes SchindelinJun 10, 2007
  24. Junio C HamanoJun 10, 2007
  25. Johannes SchindelinJun 10, 2007
  26. Johan HerlandJun 10, 2007
  27. Jakub NarebskiJun 10, 2007
  28. Teach git-gc to merge unsorted softrefsJohan Herland, Jun 10, 2007
  29. 2/7 Softrefs: Add implementation of softrefs APIJohan Herland, Jun 9, 2007
  30. 3/7 Softrefs: Add git-softref, a builtin command for adding, listing and administering softrefsJohan Herland, Jun 9, 2007
  31. 4/7 Softrefs: Add manual page documenting git-softref and softrefs subsystem in generalJohan Herland, Jun 9, 2007
  32. 5/7 Softrefs: Add testcases for basic softrefs behaviourJohan Herland, Jun 9, 2007
  33. 6/7 Softrefs: Administrivia associated with softrefs subsystem and git-softref builtinJohan Herland, Jun 9, 2007
  34. 7/7 Teach git-mktag to register softrefs for all tag objectsJohan Herland, Jun 9, 2007
  35. Change softrefs file format from text (82 bytes per entry) to binary (40 bytes per entry)Johan Herland, Jun 9, 2007
  36. Johannes SchindelinJun 10, 2007
  37. Junio C HamanoJun 10, 2007
  38. Johannes SchindelinJun 10, 2007
  39. Johan HerlandJun 10, 2007
  40. Comment on weak refsJunio C Hamano, Jun 9, 2007
  41. Johan HerlandJun 10, 2007
  42. Johannes SchindelinJun 10, 2007
  43. Johan HerlandJun 10, 2007
  44. Pierre HabouzitJun 10, 2007
  45. Pierre HabouzitJun 10, 2007
  46. Pierre HabouzitJun 10, 2007
  47. Jakub NarebskiJun 10, 2007
  48. Steven GrimmJun 9, 2007
  49. Johan HerlandJun 9, 2007
  50. Pierre HabouzitJun 10, 2007
  51. Johan HerlandJun 10, 2007
  52. Steven GrimmJun 10, 2007

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.