Fossil SCM

(cherry-pick): Update the "search" command to honor the -R option.

jan.nijtmans 2017-01-27 12:27 branch-1.37
Commit eab6be7b02d4bbf72551e7a056df960a7de548fa
1 file changed +1 -1
+1 -1
--- src/search.c
+++ src/search.c
@@ -596,11 +596,11 @@
596596
}
597597
}else{
598598
width = -1;
599599
}
600600
601
- db_must_be_within_tree();
601
+ db_find_and_open_repository(0, 0);
602602
if( g.argc<2 ) return;
603603
blob_init(&pattern, g.argv[2], -1);
604604
for(i=3; i<g.argc; i++){
605605
blob_appendf(&pattern, " %s", g.argv[i]);
606606
}
607607
--- src/search.c
+++ src/search.c
@@ -596,11 +596,11 @@
596 }
597 }else{
598 width = -1;
599 }
600
601 db_must_be_within_tree();
602 if( g.argc<2 ) return;
603 blob_init(&pattern, g.argv[2], -1);
604 for(i=3; i<g.argc; i++){
605 blob_appendf(&pattern, " %s", g.argv[i]);
606 }
607
--- src/search.c
+++ src/search.c
@@ -596,11 +596,11 @@
596 }
597 }else{
598 width = -1;
599 }
600
601 db_find_and_open_repository(0, 0);
602 if( g.argc<2 ) return;
603 blob_init(&pattern, g.argv[2], -1);
604 for(i=3; i<g.argc; i++){
605 blob_appendf(&pattern, " %s", g.argv[i]);
606 }
607

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button