mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Sort the signatures in standard key listings.
* g10/gpg.c (parse_list_options): Add "sort-sigs". (main): Make it the default. * g10/options.h (LIST_SORT_SIGS): New. * g10/keylist.c (cmp_signodes): New. (list_keyblock_print): Sort signatures and factor signature printing code out to ... (list_signature_print): new. -- In particular together with --full-timestamps this makes it easier to see the history of key signatures and their revocations. The self-signatures are also printed first. To disable this --list-options no-sort-sigs can be used. Also don't print the annoying "no recocation reason specified" message. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e59d2b3632
commit
742e2729f4
7 changed files with 248 additions and 143 deletions
|
@ -2040,6 +2040,8 @@ parse_list_options(char *str)
|
|||
NULL},
|
||||
{"show-only-fpr-mbox",LIST_SHOW_ONLY_FPR_MBOX, NULL,
|
||||
NULL},
|
||||
{"sort-sigs", LIST_SORT_SIGS, NULL,
|
||||
NULL},
|
||||
{NULL,0,NULL,NULL}
|
||||
};
|
||||
|
||||
|
@ -2408,6 +2410,7 @@ main (int argc, char **argv)
|
|||
| VERIFY_SHOW_STD_NOTATIONS
|
||||
| VERIFY_SHOW_KEYSERVER_URLS);
|
||||
opt.list_options = (LIST_SHOW_UID_VALIDITY
|
||||
| LIST_SORT_SIGS
|
||||
| LIST_SHOW_USAGE);
|
||||
#ifdef NO_TRUST_MODELS
|
||||
opt.trust_model = TM_ALWAYS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue