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

Re: [PATCH] branch: fix --verbose output column alignment

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 18, 2013, 19:27 UTC
Message-ID
<xmqqeh6dbje4.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1384453081-7679-1-git-send-email-hegge@resisty.net>
Torstein Hegge <hegge@resisty.net> writes:
Show 16 quoted lines
> Commit f2e0873 (branch: report invalid tracking branch as gone) removed
> an early return from fill_tracking_info() in the path taken when 'git
> branch -v' lists a branch in sync with its upstream. This resulted in an
> unconditionally added space in front of the subject line:
>
>     $ git branch -v
>     * master f5eb3da  commit pushed to upstream
>       topic  f935eb6 unpublished topic
>
> Instead, only add the trailing space if a decoration have been added.
>
> To catch this kind of whitespace breakage in the tests, be a bit less
> smart when filtering the output through sed.
>
> Signed-off-by: Torstein Hegge <hegge@resisty.net>
> ---
Thanks.
Previous: Jiang Xin
Message 3 of 3 in “branch: fix --verbose output column alignment”
  1. branch: fix --verbose output column alignmentTorstein Hegge, Nov 14, 2013
  2. Jiang XinNov 15, 2013
  3. Junio C HamanoNov 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.