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

Re: [PATCH] use persistent memory for rejected paths

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 15, 2010, 18:31 UTC
Message-ID
<7vvd3yl9q2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20101114130205.GA27560@localhost>
Clemens Buchacher <drizzd@aon.at> writes:
Show 6 quoted lines
> An aborted merge prints the list of rejected paths as part of the
> error message. Some of those paths do not have static buffers, so
> we have to keep a copy. Use string_list's to accomplish this.
>
> Previous to this fix, the error message would print whatever was
> stored in the stack at that point.

Hmmm, all calls to add_rejected_path() seems to be with ce->name as the path parameter, and I do not think we ever free cache entries (either taken from the index or synthesized during the merge), so I am a bit surprised that this is necessary (namely, if some ce->name points into the stack, wouldn't that be a more serious bug than misreporting???).

> With this change, the path list is printed in the order of
> processing.  Previously, the order was reversed.

That is true but I wonder if the order should be "whatever the processing order happens to be" in the first place, as this is a report to the end user, no? Perhaps "collect in strlist, sort at the end before showing" is a more desirable thing to do?

Still, I am more disturbed by the "some do not have static"...
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 19 of 26 in “What's cooking in git.git (Nov 2010, #01; Tue, 9)”
  1. Junio C HamanoNov 9, 2010
  2. Ævar Arnfjörð BjarmasonNov 9, 2010
  3. Matthieu MoyNov 9, 2010
  4. Drew NorthupNov 9, 2010
  5. Jonathan NiederNov 9, 2010
  6. Jakub NarebskiNov 9, 2010
  7. Junio C HamanoNov 11, 2010
  8. Jakub NarebskiNov 11, 2010
  9. Johan HerlandNov 9, 2010
  10. Jeff KingNov 9, 2010
  11. Erik Faye-LundNov 9, 2010
  12. Ævar Arnfjörð BjarmasonNov 9, 2010
  13. Erik Faye-LundNov 9, 2010
  14. Ævar Arnfjörð BjarmasonNov 9, 2010
  15. Yann DirsonNov 10, 2010
  16. Nguyen Thai Ngoc DuyNov 11, 2010
  17. Nguyen Thai Ngoc DuyNov 11, 2010
  18. use persistent memory for rejected pathsClemens Buchacher, Nov 14, 2010
  19. Junio C HamanoNov 15, 2010
  20. Clemens BuchacherNov 15, 2010
  21. Matthieu MoyNov 15, 2010
  22. Clemens BuchacherNov 15, 2010
  23. use persistent memory for rejected pathsClemens Buchacher, Nov 15, 2010
  24. Matthieu MoyNov 16, 2010
  25. Junio C HamanoNov 15, 2010
  26. Clemens BuchacherNov 15, 2010

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.