ref: aa70f9b666fc6ca63fa0299fea06fac929d1a9cd
parent: 8e273a31aa38892117df891dce8ce8e1c05790f9
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 26 12:38:39 EST 2020
add '~' as alias for '^' for fewer rc conflicts
--- a/ref.c
+++ b/ref.c
@@ -352,7 +352,7 @@
return -1;
}
if(readref(&h, name) == -1){
- werrstr("could not resolve ref %s", name);
+ werrstr("invalid ref %s", name);
return -1;
}else if((o = readobject(h)) == nil){
werrstr("invalid ref %s (hash %H)", name, h);
@@ -364,6 +364,7 @@
eatspace(ev);
switch(ev->p[0]){
case '^':
+ case '~':
ev->p++;
if(parent(ev) == -1)
return -1;