ref: aba180acc6c9ef7b73f78895ef07665b0e0eca52
parent: 56c212c010af4d0e18454699699eb65d08704af0
author: Jacob Moody <moody@posixcafe.org>
date: Sun Aug 14 09:04:49 EDT 2022
git/hist: make it work in subdirectories
--- a/sys/src/cmd/git/hist
+++ b/sys/src/cmd/git/hist
@@ -7,8 +7,8 @@
fn dodiff {
while(t=`{read}){
h=$t(1)
- o=.git/fs/object/`{git/query $h~}
- c=.git/fs/object/$h
+ o=$gitroot^.git/fs/object/`{git/query $h~}
+ c=$gitroot^.git/fs/object/$h
echo 'Hash:' $h
echo -n 'Date: '; date `{walk -em $c/msg}
echo -n 'Author: '; cat $c/author