remote-ls: Only show the origin column if non-unique

Most of the time it is the same because you specified the remote in
the command anyway.

Closes: #2852
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2019-04-23 15:47:28 +02:00
committed by Atomic Bot
parent c84db7714e
commit 2ee4b87c55

View File

@@ -62,7 +62,7 @@ static Column all_columns[] = {
{ "version", N_("Version"), N_("Show the version"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 1 },
{ "branch", N_("Branch"), N_("Show the branch"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 0, 1 },
{ "arch", N_("Arch"), N_("Show the architecture"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 0, 0 },
{ "origin", N_("Origin"), N_("Show the origin remote"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 1 },
{ "origin", N_("Origin"), N_("Show the origin remote"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 1, 1 },
{ "ref", N_("Ref"), N_("Show the ref"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 0 },
{ "commit", N_("Commit"), N_("Show the active commit"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 0 },
{ "runtime", N_("Runtime"), N_("Show the runtime"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 0 },