summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-08-14 13:04:49 +0000
committerJacob Moody <moody@posixcafe.org>2022-08-14 13:04:49 +0000
commitaba180acc6c9ef7b73f78895ef07665b0e0eca52 (patch)
tree61d9471c0d122a543aeffe5f52decc5d00522720 /sys/src/cmd/git
parent56c212c010af4d0e18454699699eb65d08704af0 (diff)
git/hist: make it work in subdirectories
Diffstat (limited to 'sys/src/cmd/git')
-rwxr-xr-xsys/src/cmd/git/hist4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/git/hist b/sys/src/cmd/git/hist
index 2c0f64f72..7602d30f1 100755
--- a/sys/src/cmd/git/hist
+++ b/sys/src/cmd/git/hist
@@ -7,8 +7,8 @@ gitup
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