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

Re: [PATCH 2/2] show-branch: fix description of --date-order

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 16, 2013, 18:22 UTC
Message-ID
<20130716182254.GL14690@google.com>
In-Reply-To
<8768923c2d317d02beabbf1bff2f61927e126f81.1373966389.git.trast@inf.ethz.ch>
Thomas Rast wrote:
> The existing description reads as if it somehow applies a filter.
> Change it to explain that it is merely about the ordering.
[...]
Show 5 quoted lines
>  		OPT_SET_INT(0, "date-order", &sort_order,
> -			    N_("show commits where no parent comes before its "
> +			    N_("sort commits such that no parent comes before its "
>  			       "children"),
>  			    REV_SORT_BY_COMMIT_DATE),

I fear this wording tweak doesn't go far enough. The above description seems to describe --topo-order just as well as --date-order.

How about something like
		N_("topologically sort, maintaining date order where possible"),
?  I haven't checked the code to see if that's accurate, though.
Is the idea that:
 - by default, commits are listed in commit date order (newest first)
 - with --topo-order, they are topologically sorted in such a way as
   to ensure that in cases like
	---1---2---4---7
	    \           \
	     3---5---6---8
   (from git-log(1)), parallel tracks are not interleaved
 - with --date-order, they are topologically sorted but less
   aggressively, in particular matching commit date order in the
   usual case that that is already topologically sorted.

That would make --topo-order stronger than "show commits in topological order" --- it should say something like "sort trying to avoid breaking up lines of development".

Previous: Thomas RastNext: Thomas Rast
Message 15 of 35 in “Switch German translation from pure German to German+English”
  1. 0/3 Switch German translation from pure German to German+EnglishRalf Thielow, Jun 12, 2013
  2. 1/3 l10n: de.po: switch from pure German to German+English (part 1)Ralf Thielow, Jun 12, 2013
  3. 2/3 l10n: de.po: switch from pure German to German+English (part 2)Ralf Thielow, Jun 12, 2013
  4. 3/3 l10n: de.po: switch from pure German to German+English (part 3)Ralf Thielow, Jun 12, 2013
  5. 0/3 Switch German translation to G+ERalf Thielow, Jul 10, 2013
  6. 1/3 l10n: de.po: switch from pure German to German+English (part 1)Ralf Thielow, Jul 10, 2013
  7. 2/3 l10n: de.po: switch from pure German to German+English (part 2)Ralf Thielow, Jul 10, 2013
  8. 3/3 l10n: de.po: switch from pure German to German+English (part 3)Ralf Thielow, Jul 10, 2013
  9. Thomas RastJul 15, 2013
  10. Thomas RastJul 15, 2013
  11. Thomas RastJul 15, 2013
  12. Thomas RastJul 15, 2013
  13. 1/2 apply, entry: speak of submodules instead of subprojectsThomas Rast, Jul 16, 2013
  14. 2/2 show-branch: fix description of --date-orderThomas Rast, Jul 16, 2013
  15. Jonathan NiederJul 16, 2013
  16. Thomas RastJul 16, 2013
  17. Jonathan NiederJul 16, 2013
  18. Jens LehmannJul 16, 2013
  19. Thomas RastJul 16, 2013
  20. Junio C HamanoJul 17, 2013
  21. 0/3 Switch German translation to G+ERalf Thielow, Jul 17, 2013
  22. 1/3 l10n: de.po: switch from pure German to German+English (part 1)Ralf Thielow, Jul 17, 2013
  23. 2/3 l10n: de.po: switch from pure German to German+English (part 2)Ralf Thielow, Jul 17, 2013
  24. 3/3 l10n: de.po: switch from pure German to German+English (part 3)Ralf Thielow, Jul 17, 2013
  25. Thomas RastJul 17, 2013
  26. 0/3 Switch German translation to G+ERalf Thielow, Jul 17, 2013
  27. 1/3 l10n: de.po: switch from pure German to German+English (part 1)Ralf Thielow, Jul 17, 2013
  28. 2/3 l10n: de.po: switch from pure German to German+English (part 2)Ralf Thielow, Jul 17, 2013
  29. 3/3 l10n: de.po: switch from pure German to German+English (part 3)Ralf Thielow, Jul 17, 2013
  30. Ralf ThielowJul 19, 2013
  31. Thomas RastJul 18, 2013
  32. Junio C HamanoJul 18, 2013
  33. Jiang XinJul 21, 2013
  34. 1/2 apply, entry: speak of submodules instead of subprojectsThomas Rast, Jul 18, 2013
  35. 2/2 show-branch: fix description of --date-orderThomas Rast, Jul 18, 2013

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.