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

Re: [PATCH 3/5] setup_revisions: remember whether a ref was positive or not

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2011, 23:17 UTC
Message-ID
<7vy5z3trwu.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAGdFq_ioxeZUCnn-fFKuiT-6eVzVoph8eQE2j0hEbAxtDZzGnQ@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
> Because no actual users are actually having this problem (e.g., at
> times typing "git diff ^C A B" and are seriously troubled by it), or
> at least haven't spoken up? Or do you meant that you are that user?

Yes, I am that user who have been disturbed by the command line revision parser limitation for a loooooooong time and have been wanting to see it properly fixed for quite a while (by myself or by somebody else).

Otherwise why would I have bothered to spend 93 lines to describe it and its one possible solution that I _think_ is general enough to cover both of the real issue identified in this thread?

I may probably be being slightly unfair, for two reasons. The primary reason is because the affected codepath is so central to the UI that fixing this properly is more important than various random tweaks we make in other areas (which makes me particularly picky with respect to ensuring that the future expansion would be easy). Seeing a single-bit "hack" not from a complete newbie but from two known-to-be-competent long timers of Git is another.

There are numerous hacks that try to work around the same revision parser limitation (lossage of information), and I have been hoping that a series that touch the parser to leave more information during parsing to be cleanly enhancible to get rid of them (e.g. "git checkout $commit" vs "git checkout $branch" looks at the command line itself, but it should be able to call into the revision parser and inspect what the parser gives it back).

Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 18 of 29 in “fast-export: prepare for remote helpers awesomeness”
  1. 0/5 fast-export: prepare for remote helpers awesomenessSverre Rabbelier, Jul 24, 2011
  2. 1/5 t9350: point out that refs are not updated correctlySverre Rabbelier, Jul 24, 2011
  3. 2/5 fast-export: do not refer to non-existing marksSverre Rabbelier, Jul 24, 2011
  4. 3/5 setup_revisions: remember whether a ref was positive or notSverre Rabbelier, Jul 24, 2011
  5. Junio C HamanoJul 24, 2011
  6. Junio C HamanoJul 24, 2011
  7. Sverre RabbelierAug 3, 2011
  8. Junio C HamanoAug 3, 2011
  9. Johannes SchindelinAug 8, 2011
  10. Junio C HamanoAug 8, 2011
  11. Sverre RabbelierAug 8, 2011
  12. Junio C HamanoAug 8, 2011
  13. Sverre RabbelierAug 8, 2011
  14. Junio C HamanoAug 8, 2011
  15. Sverre RabbelierAug 8, 2011
  16. Junio C HamanoAug 8, 2011
  17. Sverre RabbelierAug 8, 2011
  18. Junio C HamanoAug 8, 2011
  19. Sverre RabbelierAug 8, 2011
  20. Junio C HamanoAug 8, 2011
  21. Junio C HamanoAug 8, 2011
  22. Sverre RabbelierAug 8, 2011
  23. Junio C HamanoAug 8, 2011
  24. Sverre RabbelierAug 8, 2011
  25. Johannes SchindelinJul 26, 2011
  26. 4/5 fast-export: do not export negative refsSverre Rabbelier, Jul 24, 2011
  27. Junio C HamanoJul 24, 2011
  28. Johannes SchindelinJul 26, 2011
  29. 5/5 setup_revisions: remember whether a ref was positive or notSverre Rabbelier, Jul 24, 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.