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

Re: [PATCH 0/2] Log pretty format alignment improvements

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 16, 2016, 18:25 UTC
Message-ID
<xmqqtwgt3s9z.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160616131838.14440-1-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
> The first patch was from a long time ago. The concern was it may be
> breaking existing user expectation [1]. I still maintain that it's a good
> thing to do and should not break anything. Hence the resubmission.

I do not think "it's a good feature to have" was a question from the beginning. Thread [1] stopped with me saying "as long as >(N) can be used as Duy claims as a workaround to get the original behaviour, it is good to allow using >|(N) for this new output format; I didn't check if >(N) does behave that way, though". What was necessary to resurrect the patch was "Yes, >(N) can be used that way and here is a test" or something like that.

> The second patch adds negative column specifier to >|() and friends.
> A positive number 'n' specifies the n-th column from the left border
> of the screen, '-n' specifies the n-th column from the _right_ border.
That is quite nice enhancement.
Previous: Nguyễn Thái Ngọc DuyNext: Duy Nguyen
Message 4 of 7 in “Log pretty format alignment improvements”
  1. 0/2 Log pretty format alignment improvementsNguyễn Thái Ngọc Duy, Jun 16, 2016
  2. 1/2 pretty: pass graph width to pretty formatting for use in '%>|(N)'Nguyễn Thái Ngọc Duy, Jun 16, 2016
  3. 2/2 pretty.c: support <direction>|(<negative number>) formsNguyễn Thái Ngọc Duy, Jun 16, 2016
  4. Junio C HamanoJun 16, 2016
  5. Duy NguyenJun 17, 2016
  6. Junio C HamanoJun 17, 2016
  7. Josef KufnerJun 17, 2016

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.