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

Re: How to use git show's "%<(<N>[,trunc|ltrunc|mtrunc])"?

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 4, 2017, 11:49 UTC
Message-ID
<CACsJy8B3VULFCLyRf9Poeu7UnnZggGyV05-_4LiOO6pHjA++BA@mail.gmail.com>
In-Reply-To
<CAE1pOi3ThTLSp_0ZJHto4p75Ds5NMGymHrD0ju9axCqA1+NkMA@mail.gmail.com>

On Sat, Feb 4, 2017 at 12:10 AM, Hilco Wijbenga <hilco.wijbenga@gmail.com> wrote:

Show 6 quoted lines
>>> How do I get "2017-01-31T17:02:13 | Hilco Wijbenga" to be output?
>>
>> You'll get an ellipsis at the end though.. (i.e. 02:13... | Hilco)
>
> Indeed, that's not very nice. I suppose I can understand the reason
> for it but it mostly defeats the purpose of "trunc", doesn't it?

It depends. When you truncate a commit subject line, you may want an indicator that you're not seeing the whole line. For fixed fields like dates when you expect every string to be truncated, then yes there's not much point to show the ellipsis.

-- 
Duy
Previous: Hilco Wijbenga
Message 6 of 6 in “How to use git show's "%<(<N>[,trunc|ltrunc|mtrunc])"?”
  1. Hilco WijbengaFeb 2, 2017
  2. G. Sylvie DaviesFeb 3, 2017
  3. Hilco WijbengaFeb 3, 2017
  4. Duy NguyenFeb 3, 2017
  5. Hilco WijbengaFeb 3, 2017
  6. Duy NguyenFeb 4, 2017

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.