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

Re: What's cooking in git.git (Oct 2009, #04; Wed, 21)

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 24, 2009, 06:45 UTC
Message-ID
<7vpr8d8f3z.fsf@alter.siamese.dyndns.org>
In-Reply-To
<m3ljj3es02.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 27 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> * rs/pretty-wrap (2009-10-17) 1 commit
>>  - Implement wrap format %w() as if it is a mode switch
>>  (this branch uses js/log-rewrap; is related to jc/strbuf-nested-expand.)
>> 
>> When it comes to design issues to keep unnecessary complexity out, I tend
>> to trust Rene (and Nico) a lot more than I trust myself.  Tonight's 'pu'
>> queues this series instead of my "nested" one.
>
>> * jc/strbuf-nested-expand (2009-10-18) 3 commits
>>  . Teach --wrap to only indent without wrapping
>>  . Add %[wrap(width,in1,in2)<<any-string>>%] implementation
>>  . strbuf_nested_expand(): allow expansion to interrupt in the middle
>>  (this branch uses js/log-rewrap; is related to rs/pretty-wrap.)
>> 
>> Ejected from 'pu' to let rs/pretty-wrap in as described above.
>
> I think nested expand is easier to use than a mode switch: using
> scoping (well, kind of) like in high-level programming languages is
> IMVHO easier than programming a state machine like in assembler (or
> e.g. OpenGL).
>
> On the other hand this makes pretty format into a mini-language; also
> we already have and use mode switches in the form of color codes.
> Perhaps if color also used wrapping / nested expand, so one doesn't
> have to track where to turn off and on which toggle...

Indeed, the "mini-language"-ness was what made Réne worried and reminded me that I should be worried, too. We need to get the design right if we do so---there may come a time that we are better off biting the bullet when we discover needs (notice, it is not "wants, because we can") for many useful string functions, but I do not think we have reached that point yet.

Show 5 quoted lines
>> * jc/pretty-lf (2009-10-04) 1 commit.
>>  - Pretty-format: %[+-]x to tweak inter-item newlines
>
> I understand that %a%+b expands to %a%n%b if %b has non-empty
> expansion, and to %a if %b is empty, but what %-b is used for?
I know you can read the commit log message.
Previous: Stephen BoydNext: Jens Lehmann
Message 12 of 33 in “What's cooking in git.git (Oct 2009, #04; Wed, 21)”
  1. Junio C HamanoOct 22, 2009
  2. ks/precompute-completion (was Re: What's cooking in git.git (Oct 2009, #04; Wed, 21))Stephen Boyd, Oct 22, 2009
  3. Sverre RabbelierOct 22, 2009
  4. Stephen BoydOct 22, 2009
  5. A Large Angry SCMOct 22, 2009
  6. Johannes SchindelinOct 22, 2009
  7. Jakub NarebskiOct 22, 2009
  8. Nguyen Thai Ngoc DuyOct 22, 2009
  9. skillzero@gmail.comOct 22, 2009
  10. Junio C HamanoOct 22, 2009
  11. Stephen BoydOct 22, 2009
  12. Junio C HamanoOct 24, 2009
  13. add tests for git diff --submoduleJens Lehmann, Oct 23, 2009
  14. Junio C HamanoOct 24, 2009
  15. Clemens BuchacherOct 25, 2009
  16. Junio C HamanoOct 26, 2009
  17. Clemens BuchacherOct 26, 2009
  18. Stephen BoydOct 26, 2009
  19. Clemens BuchacherOct 26, 2009
  20. Shawn O. PearceOct 27, 2009
  21. Junio C HamanoOct 28, 2009
  22. Shawn O. PearceOct 27, 2009
  23. Shawn O. PearceOct 28, 2009
  24. A Large Angry SCMOct 22, 2009
  25. Sverre RabbelierOct 23, 2009
  26. Junio C HamanoOct 23, 2009
  27. Sverre RabbelierOct 23, 2009
  28. Junio C HamanoOct 23, 2009
  29. Sverre RabbelierOct 23, 2009
  30. Jakub NarebskiOct 23, 2009
  31. Sverre RabbelierOct 23, 2009
  32. A Large Angry SCMOct 23, 2009
  33. Sverre RabbelierOct 23, 2009

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.