{"thread":{"id":"46032","subject":"git --merge and option parsing","startedAt":"2017-05-23T10:17:29Z","lastAt":"2017-05-23T11:39:39Z","messageCount":2,"participants":["Holst, Henrik","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"320546","messageId":"BLUPR0701MB75463EE0B8ADC559BBE02A282F90@BLUPR0701MB754.namprd07.prod.outlook.com","threadId":"46032","inReplyTo":null,"subject":"git --merge and option parsing","fromName":"Holst, Henrik","fromEmail":"henrik.holst@frostbite.com","sentAt":"2017-05-23T10:17:18Z","receivedAt":"2017-05-23T10:17:29Z","isPatch":false,"sender":{"key":"henrik.holst@frostbite.com","avatar":null},"body":"Hi,\n\nI am not sure if this is a bug but it was surprising to me so I thought I'd report it here.\n\nI 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.\n\nhholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] \n$ git branch --no-column --merged\n* feature/NetworkHandler\n[snip]\n\nhholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] \n$ git branch --merged --no-column\nfatal: malformed object name --no-column\n\nhholst@fb-hholst3 ~/src/a3c-batch (feature/NetworkHandler) [conda:tensorflow] \n$ git --version\ngit version 2.13.0\n\nBest,\nHenrik Holst\n(Not on the list)\n"},{"id":"320551","messageId":"20170523113930.tqg4te7dfqr3f7s2@sigill.intra.peff.net","threadId":"46032","inReplyTo":"BLUPR0701MB75463EE0B8ADC559BBE02A282F90@BLUPR0701MB754.namprd07.prod.outlook.com","subject":"Re: git --merge and option parsing","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-05-23T11:39:30Z","receivedAt":"2017-05-23T11:39:39Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, May 23, 2017 at 10:17:18AM +0000, Holst, Henrik wrote:\n\n> I am not sure if this is a bug but it was surprising to me so I\n> thought I'd report it here.\n> \n> I added `ui.column=auto` to my gitconfig and that does not work so\n> well with pipes so I want to use `--no-column` option. I was a bit\n> surprised that this does not work? It seems that `--merged` picks up\n> `--no-column` as a commit reference instead it being parsed as an\n> option.\n\nThat's behaving as expected. The --merged option has an optional\nargument, which defaults to \"HEAD\". If you provide another argument\n(even if it looks like an option to you), then it gets attached to\n--merged.\n\nAs you saw, \"git branch --no-column --merged\" works, but so would \"git\nbranch --merged HEAD --no-column\".\n\n-Peff\n"}]}