-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: uritools
action: commit
revision:
path_from:
revision_from: 511ebda349763dbdbaeb64fea5732e7953726bd3:
path_to:
revision_to:

git.thebackupbox.net

uritools

git://git.thebackupbox.net/uritools

commit 511ebda349763dbdbaeb64fea5732e7953726bd3
Author: epoch <epoch@thebackupbox.net>
Date:   Fri Aug 19 02:11:19 2022 -0500

    added the ability to use blank match lines to match anything

diff --git a/urigetline.c b/urigetline.c

index 4c5c7b4acc135765d7d78074b3c4ce7117eafb6b..

index ..92b4de7c33a8a700762898fc420bb4fb61219f15 100644

--- a/urigetline.c
+++ b/urigetline.c
@@ -80,6 +80,7 @@ int main(int argc,char *argv[]) {//argument needs to be the URI
       rule=MATCH_PATTERN;
       j=0;
       switch(a[0]) {
+	case 0: j=1; goto match; break;
         case '-': j=1; rule=MATCH_PATTERN; break;
         case 'n': j=1; rule=MATCH_UNEXIST; break;
         case 'r': j=1; rule=MATCH_REVERSE; break;
@@ -120,6 +121,7 @@ int main(int argc,char *argv[]) {//argument needs to be the URI
       a=c;
     }
     if(matches) {
+match:
       //printf("comm: %s\n",command);
       printf("%s\n",command);
       if(!all) return ret;//bail early if we only need first match

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 19:04:24 2024