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

Re: [BUG?] Issue with branch -avv command

From
Jeff King <peff@peff.net>
Date
Apr 7, 2017, 06:32 UTC
Message-ID
<20170407063222.hh2mifjidq5vrxfg@sigill.intra.peff.net>
In-Reply-To
<CAFQrz2EXJY=f6Yn0SHn0fZf61=hJQFb6t8LO+Dryw0HVf_s0rw@mail.gmail.com>
On Fri, Apr 07, 2017 at 01:08:23PM +0800, diguazhixiu@gmail.com wrote:
Show 20 quoted lines
> Hi, all,
> 
> I have a problem when I use command 'git branch -avv', the result is
> like  below:
> 
>   my_test_branch                        d67ab86 fix some problem
> * master                                     27c4e0b [origin/master]
> Add new file
>  See merge request !146g within bucketsa824 Merge branch 'master' into 'master'
>   pref                                           060cac2 Fix bug
>   remotes/origin/HEAD                 -> origin/master
>   remotes/origin/my_test_branch d67ab86 fix some problem
>   remotes/origin/master               27c4e0b Add new file
>  See merge request !146g within bucketsa824 Merge branch 'master' into 'master'
> 
> The message ' See merge request...'  take the place of branch name, so
> I have to user 'git branch -a'
> to see the corresponding branch name.
> 
> Now, is my usage wrong? or is this a problem?

Do you perhaps have a commit at the tip of the branch that has a carriage-return in it? Try piping the output through "cat -A" and look for "^M" in the output.

-Peff
Previous: diguazhixiu@gmail.com
Message 2 of 2 in “[BUG?] Issue with branch -avv command”
  1. diguazhixiu@gmail.comApr 7, 2017
  2. Jeff KingApr 7, 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.