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

git --merge and option parsing

From
HHHolst, Henrik <henrik.holst@frostbite.com>
Date
May 23, 2017, 10:17 UTC
Message-ID
<BLUPR0701MB75463EE0B8ADC559BBE02A282F90@BLUPR0701MB754.namprd07.prod.outlook.com>
Hi,
I am not sure if this is a bug but it was surprising to me so I thought I'd report it here.
I added `ui.column=auto` to my gitconfig and that does not work so well with pipes so I want to use `--no-column` option. I was a bit surprised that this does not work? It seems that `--merged` picks up `--no-column` as a commit reference instead it being parsed as an option.
hholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] 
$ git branch --no-column --merged
* feature/NetworkHandler
[snip]

hholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] $ git branch --merged --no-column fatal: malformed object name --no-column

hholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] $ git --version git version 2.13.0

Best, Henrik Holst (Not on the list)

Next: Jeff King
Message 1 of 2 in “git --merge and option parsing”
  1. Holst, HenrikMay 23, 2017
  2. Jeff KingMay 23, 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.