Commit 953f035
committed
readtags: experimental support for specifying -t multiple times
$ ~/bin/ctags -o podman.tags -R ~/var/podman
$ ~/bin/ctags -o glibc.tags -R ~/var/glibc
$ ~/bin/ctags -o coreutils832.tags -R /srv/sources9c/sources/c/coreutils/8.32-31.el9--srpm/pre-build/coreutils-8.32
$ ./readtags -A -Q '(and (eq? $name "main") (#/.*user.*/ $input))' -t podman.tags -t glibc.tags -t coreutils832.tags -l
main /srv/sources9c/sources/c/coreutils/8.32-31.el9--srpm/pre-build/coreutils-8.32/gnulib-tests/test-userspec.c /^main (void)$/
main /srv/sources9c/sources/c/coreutils/8.32-31.el9--srpm/pre-build/coreutils-8.32/lib/getusershell.c /^main (void)$/
main /srv/sources9c/sources/c/coreutils/8.32-31.el9--srpm/pre-build/coreutils-8.32/lib/userspec.c /^main (int argc, char **argv)$/
main /srv/sources9c/sources/c/coreutils/8.32-31.el9--srpm/pre-build/coreutils-8.32/src/users.c /^main (int argc, char **argv)$/
$ ./readtags -A -Q '(and (eq? $name "main") (#/.*container.*/ $input))' -t podman.tags -t glibc.tags -t coreutils832.tags -l
main /home/yamato/var/glibc/support/echo-container.c /^main (int argc, const char **argv)$/
main /home/yamato/var/glibc/support/shell-container.c /^main (int argc, const char **argv)$/
main /home/yamato/var/glibc/support/test-container.c /^main (int argc, char **argv)$/
main /home/yamato/var/glibc/support/true-container.c /^main (void)$/
$ ./readtags -A -Q '(not (#/.*_test.*/ $input))' -t podman.tags -t glibc.tags -t coreutils832.tags rootless
rootless /home/yamato/var/podman/pkg/rootless/rootless.go /^package rootless$/
rootless /home/yamato/var/podman/pkg/rootless/rootless_freebsd.go /^package rootless$/
rootless /home/yamato/var/podman/pkg/rootless/rootless_linux.go /^package rootless$/
rootless /home/yamato/var/podman/pkg/rootless/rootless_unsupported.go /^package rootless$/
rootless /home/yamato/var/podman/vendor/github.com/containers/image/v5/internal/rootless/rootless.go /^package rootless$/
Signed-off-by: Masatake YAMATO <[email protected]>1 parent 044cd45 commit 953f035
1 file changed
+71
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
661 | 662 | | |
662 | 663 | | |
663 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
664 | 686 | | |
665 | 687 | | |
666 | 688 | | |
667 | 689 | | |
668 | 690 | | |
669 | 691 | | |
670 | 692 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 693 | + | |
| 694 | + | |
675 | 695 | | |
676 | 696 | | |
677 | 697 | | |
| |||
755 | 775 | | |
756 | 776 | | |
757 | 777 | | |
758 | | - | |
| 778 | + | |
759 | 779 | | |
760 | 780 | | |
761 | 781 | | |
| |||
888 | 908 | | |
889 | 909 | | |
890 | 910 | | |
891 | | - | |
892 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
893 | 914 | | |
894 | 915 | | |
895 | | - | |
| 916 | + | |
896 | 917 | | |
897 | 918 | | |
898 | 919 | | |
| |||
964 | 985 | | |
965 | 986 | | |
966 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
967 | 1000 | | |
968 | | - | |
| 1001 | + | |
969 | 1002 | | |
970 | 1003 | | |
971 | 1004 | | |
972 | | - | |
| 1005 | + | |
973 | 1006 | | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
979 | 1034 | | |
980 | 1035 | | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
| 1036 | + | |
985 | 1037 | | |
986 | 1038 | | |
987 | 1039 | | |
| |||
1008 | 1060 | | |
1009 | 1061 | | |
1010 | 1062 | | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | 1063 | | |
1020 | 1064 | | |
0 commit comments