Commits

Takumi IINO committed 2f83c7b

mercurial: add alias grepfile

Comments (0)

Files changed (1)

 shortlog  = log  --template '\033[31m{rev}:{node|short}\033[m | {date|shortdate} | {author|user}: {desc|strip|firstline}\n'
 gshortlog = glog --template '\033[31m{rev}:{node|short}\033[m | {date|shortdate} | {author|user}: {desc|strip|firstline}\n\033[36m{branches}\033[m\n'
 
+# locate
+grepfile = ! $HG locate --print0 | xargs --null grep $@
+gf = grepfile
+
 # resolve
 mark = resolve -m
 unmark = resolve -u