Re: [PATCH 4/8] tag: Implicitly supply --list given another list-like option

2017-03-20 Thread Ævar Arnfjörð Bjarmason
On Mon, Mar 20, 2017 at 4:55 AM, Jeff King wrote: > On Sat, Mar 18, 2017 at 10:32:52AM +, Ævar Arnfjörð Bjarmason wrote: > >> With this change errors messages such as "--contains option is only >> allowed with -l" don't make sense anymore, since options like >> --contain turn

Re: [PATCH 4/8] tag: Implicitly supply --list given another list-like option

2017-03-19 Thread Jeff King
On Sat, Mar 18, 2017 at 10:32:52AM +, Ævar Arnfjörð Bjarmason wrote: > With this change errors messages such as "--contains option is only > allowed with -l" don't make sense anymore, since options like > --contain turn on -l. Instead we error out when list-like options such > as --contain

[PATCH 4/8] tag: Implicitly supply --list given another list-like option

2017-03-18 Thread Ævar Arnfjörð Bjarmason
Change the "tag" command to implicitly turn on its --list mode when provided with a list-like option such as --contains, --points-at etc. This is for consistency with how "branch" works. When "branch" is given a list-like option, such as --contains, it implicitly provides --list. Before this