mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 06:11:47 -04:00
app: Limit commit id output to 12 chars
This commit is contained in:
@@ -108,8 +108,9 @@ print_installed_refs (const char *kind, gboolean print_system, gboolean print_us
|
||||
|
||||
xdg_app_table_printer_add_column (printer, partial_ref);
|
||||
xdg_app_table_printer_add_column (printer, repo);
|
||||
xdg_app_table_printer_add_column (printer, active);
|
||||
|
||||
active[MIN(strlen(active), 12)] = 0;
|
||||
xdg_app_table_printer_add_column (printer, active);
|
||||
|
||||
xdg_app_table_printer_add_column (printer, ""); /* Options */
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ xdg_app_builtin_ls_remote (int argc, char **argv, GCancellable *cancellable, GEr
|
||||
for (i = 0; i < n_keys; i++)
|
||||
{
|
||||
if (opt_show_details)
|
||||
g_print ("%s\t%s\n", keys[i], (char *)g_hash_table_lookup (names, keys[i]));
|
||||
g_print ("%s\t%.12s\n", keys[i], (char *)g_hash_table_lookup (names, keys[i]));
|
||||
else
|
||||
g_print ("%s\n", keys[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user